HotKeyIt
Joined: 18 Jun 2008 Posts: 1994 Location: GERMANY
|
Posted: Fri Nov 27, 2009 6:00 am Post subject: |
|
|
Yes it is, use a subroutine and Hotkey command. | Code: | Hotkey,a,HotkeyOFF,Off
Gui,Add,Edit
Gui,Add,Button,gSub,Off
Gui,+LastFound
hwnd:=WinExist()
Gui,Show
Return
GuiClose:
ExitApp
Sub:
toggle:=!toggle
Hotkey,a,% toggle ? "On" : "Off"
ControlSetText,Button1,% toggle ? "On" : "Off",ahk_id %hwnd%
Return
HotkeyOFF:
Return |
_________________ AutoHotFile - ToolTip(n,text,title,options) |
|