Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Gui, Add, Button, x442 y300 w20 h20 Default gAdd, +
- Gui, Add, Button, x402 y300 w40 h20 gClear, Clear
- Gui, Add, Button, x332 y300 w70 h20 gRandomize , Randomize
- Gui, Show, h323 w465, ToDoList
- var := 1
- return
- Add:
- if (var = 1)
- {
- InputBox, applep1,
- Gui, Add, CheckBox, x2 y0 w320 h20 Check3 vapple1, %applep1%
- var := 2
- return
- }
- if (var = 2)
- {
- InputBox, applep2,
- Gui, Add, CheckBox, x2 y20 w320 h20 Check3 vapple2, %applep2%
- var := 3
- return
- }
- if (var = 3)
- {
- InputBox, applep3,
- Gui, Add, CheckBox, x2 y40 w320 h20 Check3 vapple3, %applep3%
- var := 4
- return
- }
- if (var = 4)
- {
- InputBox, applep4,
- Gui, Add, CheckBox, x2 y60 w320 h20 Check3 vapple4, %applep4%
- var := 5
- return
- }
- if (var = 5)
- {
- InputBox, applep5,
- Gui, Add, CheckBox, x2 y80 w320 h20 Check3 vapple5, %applep5%
- var := 6
- return
- }
- if (var = 6)
- {
- InputBox, applep6,
- Gui, Add, CheckBox, x2 y100 w320 h20 Check3 vapple6, %applep6%
- var := 7
- return
- }
- if (var = 7)
- {
- InputBox, applep7,
- Gui, Add, CheckBox, x2 y120 w320 h20 Check3 vapple7, %applep7%
- var := 8
- return
- }
- if (var = 8)
- {
- InputBox, applep8,
- Gui, Add, CheckBox, x2 y140 w320 h20 Check3 vapple8, %applep8%
- var := 9
- return
- }
- if (var = 9)
- {
- InputBox, applep9,
- Gui, Add, CheckBox, x2 y160 w320 h20 Check3 vapple9, %applep9%
- var := 10
- return
- }
- if (var = 10)
- {
- InputBox, applep10,
- Gui, Add, CheckBox, x2 y180 w320 h20 Check3 vapple10, %applep10%
- var := 11
- return
- }
- if (var = 11)
- {
- InputBox, applep11,
- Gui, Add, CheckBox, x2 y200 w320 h20 Check3 vapple11, %applep11%
- var := 12
- return
- }
- if (var = 12)
- {
- InputBox, applep12,
- Gui, Add, CheckBox, x2 y220 w320 h20 Check3 vapple12, %applep12%
- var := 13
- return
- }
- if (var = 13)
- {
- InputBox, applep13,
- Gui, Add, CheckBox, x2 y240 w320 h20 Check3 vapple13, %applep13%
- var := 14
- return
- }
- if (var = 14)
- {
- InputBox, applep14,
- Gui, Add, CheckBox, x2 y260 w320 h20 Check3 vapple14, %applep14%
- var := 15
- return
- }
- if (var = 15)
- {
- InputBox, applep15,
- Gui, Add, CheckBox, x2 y280 w320 h20 Check3 vapple15, %applep15%
- var := 16
- return
- }
- if (var = 16)
- {
- MsgBox, , Clear first! Limit 15., You can't add any more! Clear to add more., 10
- }
- return
- Clear:
- Reload
- return
- Randomize:
- Gui, Submit, NoHide
- Loop, 15
- {
- if apple%A_Index% = -1
- {
- pineapple%A_Index% := applep%A_Index%
- pizza += 1
- }
- }
- if pizza =
- MsgBox, There is nothing to randomize!
- else
- {
- Random, migrane, 1, %pizza%
- Loop, %pizza%
- {
- if migrane = %A_Index%
- {
- MsgBox, %pineapple%A_Index%%
- }
- }
- pizza := 0
- return
- }
- F6::
- Gui, Show
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement