Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f1::
- ;THE GUI
- Toggle := !Toggle
- If Toggle
- {
- Gui,+AlwaysOnTop
- Gui, Add, Button, x12 y9 w50 h30 gButton1, mute all
- Gui, Add, Button, x72 y9 w50 h30 gButton2, Button2
- Gui, Add, Button, x132 y9 w50 h30 gButton3, Button3
- Gui, Add, Button, x192 y9 w50 h30 gButton4, Button4
- Gui, Add, Button, x12 y49 w50 h30 gButton5, Button5
- Gui, Add, Button, x72 y49 w50 h30 gButton6, Button6
- Gui, Add, Button, x132 y49 w50 h30 gButton7, Button7
- Gui, Add, Button, x192 y49 w50 h30 gButton8, Button8
- Gui, Show, x852 y406 h97 w257, zoom gui
- }
- else
- {
- Gui, Destroy
- }
- Return
- ;GUI BUTTON PRESSED
- Button1:
- msgbox, pressed 1
- Return
- Button2:
- msgbox, pressed 2
- Return
- Button3:
- msgbox, pressed 3
- Return
- Button4:
- msgbox, pressed 4
- Return
- Button5:
- msgbox, pressed 5
- Return
- Button6:
- msgbox, pressed 6
- Return
- Button7:
- msgbox, pressed 7
- Return
- Button8:
- msgbox, pressed 8
- Return
- f2::
- Menu MyMenu, Add, 1 mute all, muteallhandler
- Menu MyMenu, Add, 2 B Item 2, item2handler
- Menu MyMenu, Add, 3 B Item 3, item3handler
- Menu MyMenu, Add, 4 B Item 4, item4handler
- Menu MyMenu, Add, 5 B Item 5, item5handler
- Menu MyMenu, Show
- Return
- muteallhandler:
- Msgbox, You pressed item 1
- Return
- item2handler:
- Msgbox, You pressed item 2
- Return
- item3handler:
- Msgbox, You pressed item 3
- Return
- item4handler:
- Msgbox, You pressed item 4
- Return
- item5handler:
- Msgbox, You pressed item 5
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement