Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. Gui, +AlwaysOnTop
  2. Gui, Add, ListBox, gAction vChoise w200 h60, one|two|three|four
  3. return
  4.  
  5. ; Press F1 to show the gui:
  6. F1:: Gui, Show, x0 y0, Actions
  7.  
  8. Action:
  9. If ((A_GuiEvent = "DoubleClick") || (Trigger_Action))
  10. {
  11. Gui, Submit
  12. If (Choise = "one")
  13. MsgBox, 1st action
  14. If (Choise = "two")
  15. MsgBox, 2nd action
  16. If (Choise = "three")
  17. MsgBox, 3rd action
  18. If (Choise = "four")
  19. MsgBox, 4th action
  20. }
  21. return
  22.  
  23. #If WinActive("Actions ahk_class AutoHotkeyGUI")
  24.  
  25. Enter::
  26. Trigger_Action := true
  27. GoSub, Action
  28. Trigger_Action := false
  29. return
  30.  
  31. #If
  32.  
  33. GuiClose:
  34. ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement