Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;---------------------------------------------CONFIG SEGMENT-------------------------------------------------------
- $F11:: ;You can change F11 to any key. Keylist --> https://autohotkey.com/docs/KeyList.htm#function
- ;1 to enable flask, 0 to disable flask, in this case only flasks 3,4 and 5 will be active.
- Flask1 = 1
- Flask2 = 1
- Flask3 = 1
- Flask4 = 1
- Flask5 = 1
- Random, Delay1, 50, 150 ;You can change the random delay for each flask by changing 50 and 150 (milliseconds)
- Random, Delay2, 50, 150
- Random, Delay3, 50, 150
- Random, Delay4, 50, 150
- Random, Delay5, 50, 150
- ;-------------------------------------------END OF CONFIG SEGMENT--------------------------------------------------
- Finished = 0
- Max = 0
- Max += Flask1 + Flask2 + Flask3 + Flask4 + Flask5
- While Finished < Max
- {
- Random, EnterHere, 1, 5
- if (EnterHere = 1 and Flask1 != 0)
- {
- Flask1 = 0
- Finished ++
- Sleep, Delay1
- Send {1}
- }
- if (EnterHere = 2 and Flask2 != 0)
- {
- Flask2 = 0
- Finished ++
- Sleep, Delay2
- Send {2}
- }
- if (EnterHere = 3 and Flask3 != 0)
- {
- Flask3 = 0
- Finished ++
- Sleep, Delay3
- Send {3}
- }
- if (EnterHere = 4 and Flask4 != 0)
- {
- Flask4 = 0
- Finished ++
- Sleep, Delay4
- Send {4}
- }
- if (EnterHere = 5 and Flask5 != 0)
- {
- Flask5 = 0
- Finished ++
- Sleep, Delay5
- Send {5}
- }
- if (Finished = Max)
- {
- break
- }
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement