Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global button1= n
- global button2= n
- global button3= n
- f1::
- gui, destroy
- Gui, Add, Button, x32 y19 w100 h30 ghotdog , hot dog
- Gui, Add, Button, x162 y19 w100 h30 gfries , fries
- Gui, Add, Button, x292 y19 w100 h30 gsoda, soda
- Gui, Add, Text, x42 y59 w80 h20 vhotdogR,
- Gui, Add, Text, x172 y59 w80 h20 vfriesR,
- Gui, Add, Text, x302 y59 w80 h20 vsodaR,
- Gui, Show, x660 y406 h95 w436, orders
- Return
- hotdog:
- GuiControl,,hotdogR,Ready
- button1 = p
- seewhatpressed()
- Return
- fries:
- GuiControl,,friesR,Ready
- button2 = p
- seewhatpressed()
- Return
- soda:
- GuiControl,,sodaR,Ready
- button3 = p
- seewhatpressed()
- Return
- seewhatpressed(){
- if (button1 = button2 && button2 = button3)
- {
- msgbox, Order done!
- button1=
- button2=
- button3=
- GuiControl,,hotdogR,
- GuiControl,,friesR,
- GuiControl,,sodaR,
- }
- Return
- }
Advertisement
Add Comment
Please, Sign In to add comment