Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Gui, +AlwaysOnTop
- Gui, Add, ListBox, gAction vChoise w200 h60, one|two|three|four
- return
- ; Press F1 to show the gui:
- F1:: Gui, Show, x0 y0, Actions
- Action:
- If ((A_GuiEvent = "DoubleClick") || (Trigger_Action))
- {
- Gui, Submit
- If (Choise = "one")
- MsgBox, 1st action
- If (Choise = "two")
- MsgBox, 2nd action
- If (Choise = "three")
- MsgBox, 3rd action
- If (Choise = "four")
- MsgBox, 4th action
- }
- return
- #If WinActive("Actions ahk_class AutoHotkeyGUI")
- Enter::
- Trigger_Action := true
- GoSub, Action
- Trigger_Action := false
- return
- #If
- GuiClose:
- ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement