Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Warn
- OnMessage(0x404, "AHK_NOTIFYICON")
- Hotkey, F5, Off
- Gui, Add, Checkbox, vOptCheckBox Checked, enable/disable checkbox
- Gui, Add, Button, gExitbutton, Save and Exit
- Gui, Show
- return
- F5::
- MsgBox, Hi, this is F5
- return
- ExitButton:
- Gui, Submit, Hide
- Hotkey, F5, % (OptCheckBox ? "On" : "Off")
- while (OptCheckBox)
- {
- MsgBox, Hi, this is while
- }
- return
- AHK_NOTIFYICON(wParam, lParam)
- {
- if (lParam = 0x202) ; WM_LBUTTONUP
- {
- Gui, Show,, Hotkeys
- }
- else if (lParam = 0x205) ; WM_RBUTTONUP
- {
- Menu, Tray, Show
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement