I try to transfer some Guis to be started with Hotkeys from V1x to V2...128. The example from docs works. But when I uncomment the Hotkey ^b nothing happens when I press ctrl+b. Same with other hotkeys. e.g. !g. What am i doing wrong?
Stay healthy
Code: Select all
; ^b::
{
MyGui := Gui(, "Simple Input Example")
MyGui.Add("Text",, "First name:")
MyGui.Add("Text",, "Last name:")
MyGui.Add("Edit", "vFirstName ym") ; The ym option starts a new column of controls.
MyGui.Add("Edit", "vLastName")
MyGui.Add("Button", "default", "OK").OnEvent("Click", (*) => ProcessUserInput(MyGui))
MyGui.OnEvent("Close", ProcessUserInput)
MyGui.Show()
ProcessUserInput(thisGui, *)
{
Saved := thisGui.Submit() ; Save the contents of named controls into an object.
MsgBox("You entered '" Saved.FirstName " " Saved.LastName "'.")
}
}