tabnation

multibuttons gui

May 16th, 2022
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. global button1= n
  2. global button2= n
  3. global button3= n
  4.  
  5. f1::
  6. gui, destroy
  7. Gui, Add, Button, x32 y19 w100 h30 ghotdog , hot dog
  8. Gui, Add, Button, x162 y19 w100 h30 gfries , fries
  9. Gui, Add, Button, x292 y19 w100 h30 gsoda, soda
  10. Gui, Add, Text, x42 y59 w80 h20 vhotdogR,
  11. Gui, Add, Text, x172 y59 w80 h20 vfriesR,
  12. Gui, Add, Text, x302 y59 w80 h20 vsodaR,
  13. Gui, Show, x660 y406 h95 w436, orders
  14. Return
  15.  
  16. hotdog:
  17. GuiControl,,hotdogR,Ready
  18. button1 = p
  19. seewhatpressed()
  20. Return
  21.  
  22. fries:
  23. GuiControl,,friesR,Ready
  24. button2 = p
  25. seewhatpressed()
  26. Return
  27.  
  28. soda:
  29. GuiControl,,sodaR,Ready
  30. button3 = p
  31. seewhatpressed()
  32. Return
  33.  
  34.  
  35. seewhatpressed(){
  36. if (button1 = button2 && button2 = button3)
  37. {
  38. msgbox, Order done!
  39. button1=
  40. button2=
  41. button3=
  42. GuiControl,,hotdogR,
  43. GuiControl,,friesR,
  44. GuiControl,,sodaR,
  45. }
  46. Return
  47. }
  48.  
  49.  
Advertisement
Add Comment
Please, Sign In to add comment