Code: Select all
Gui Add, Editbox, x100 y100 +Limit1 vEdit1
GuiControlGet, Edit1
%Edit1%::
MsgBox, You pressed the key that you've input on Edit1!
return
Code: Select all
%Edit1%::
MsgBox, You pressed the key that you've input on Edit1!
return
Code: Select all
Gui Add, Editbox, x100 y100 +Limit1 vEdit1
GuiControlGet, Edit1
%Edit1%::
MsgBox, You pressed the key that you've input on Edit1!
return
Code: Select all
%Edit1%::
MsgBox, You pressed the key that you've input on Edit1!
return
Code: Select all
Gui, Add, Edit, x100 y100 +Limit1 gSetHotkey vEdit1
Gui, Show
return
SetHotkey:
Gui, Submit, NoHide
Hotkey, % %A_GuiControl%, % A_GuiControl
return
Edit1:
MsgBox, You pressed the key %A_ThisHotkey% that you've input on %A_ThisLabel%!
return
GuiClose:
GuiEscape:
ExitApp