Advertisement
tabnation

to many hotkeys?

Jan 20th, 2022
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. f1::
  2. ;THE GUI
  3. Toggle := !Toggle
  4. If Toggle
  5. {
  6. Gui,+AlwaysOnTop
  7. Gui, Add, Button, x12 y9 w50 h30 gButton1, mute all
  8. Gui, Add, Button, x72 y9 w50 h30 gButton2, Button2
  9. Gui, Add, Button, x132 y9 w50 h30 gButton3, Button3
  10. Gui, Add, Button, x192 y9 w50 h30 gButton4, Button4
  11. Gui, Add, Button, x12 y49 w50 h30 gButton5, Button5
  12. Gui, Add, Button, x72 y49 w50 h30 gButton6, Button6
  13. Gui, Add, Button, x132 y49 w50 h30 gButton7, Button7
  14. Gui, Add, Button, x192 y49 w50 h30 gButton8, Button8
  15. Gui, Show, x852 y406 h97 w257, zoom gui
  16. }
  17. else
  18. {
  19. Gui, Destroy
  20. }
  21. Return
  22.  
  23. ;GUI BUTTON PRESSED
  24. Button1:
  25. msgbox, pressed 1
  26. Return
  27.  
  28. Button2:
  29. msgbox, pressed 2
  30. Return
  31.  
  32. Button3:
  33. msgbox, pressed 3
  34. Return
  35.  
  36. Button4:
  37. msgbox, pressed 4
  38. Return
  39.  
  40. Button5:
  41. msgbox, pressed 5
  42. Return
  43.  
  44. Button6:
  45. msgbox, pressed 6
  46. Return
  47.  
  48. Button7:
  49. msgbox, pressed 7
  50. Return
  51.  
  52. Button8:
  53. msgbox, pressed 8
  54. Return
  55.  
  56. f2::
  57. Menu MyMenu, Add, 1 mute all, muteallhandler
  58. Menu MyMenu, Add, 2 B Item 2, item2handler
  59. Menu MyMenu, Add, 3 B Item 3, item3handler
  60. Menu MyMenu, Add, 4 B Item 4, item4handler
  61. Menu MyMenu, Add, 5 B Item 5, item5handler
  62. Menu MyMenu, Show
  63. Return
  64.  
  65. muteallhandler:
  66. Msgbox, You pressed item 1
  67. Return
  68.  
  69. item2handler:
  70. Msgbox, You pressed item 2
  71. Return
  72.  
  73. item3handler:
  74. Msgbox, You pressed item 3
  75. Return
  76.  
  77. item4handler:
  78. Msgbox, You pressed item 4
  79. Return
  80.  
  81. item5handler:
  82. Msgbox, You pressed item 5
  83. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement