Code: Select all
#Requires AutoHotkey v2.0
myGui := Gui()
editControl := myGui.AddEdit("w300 h100 vMyEdit", "a`n`n`n`nb")
myGui.AddButton(, "Format Text").OnEvent("Click", FormatText)
myGui.Show
FormatText(*)
{
saved := myGui.Submit(0)
newText := RegExReplace(saved.MyEdit, "\w", "C")
editControl.Text := newText
}
Code: Select all
C
C
Code: Select all
CC