Advertisement
Guest User

Head smash simulator

a guest
Aug 11th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;---------------------------------------------CONFIG SEGMENT-------------------------------------------------------
  2. $F11::              ;You can change F11 to any key. Keylist --> https://autohotkey.com/docs/KeyList.htm#function
  3.                     ;1 to enable flask, 0 to disable flask, in this case only flasks 3,4 and 5 will be active.
  4. Flask1 = 1
  5. Flask2 = 1
  6. Flask3 = 1
  7. Flask4 = 1
  8. Flask5 = 1
  9.  
  10. Random, Delay1, 50, 150     ;You can change the random delay for each flask by changing 50 and 150 (milliseconds)
  11. Random, Delay2, 50, 150
  12. Random, Delay3, 50, 150
  13. Random, Delay4, 50, 150
  14. Random, Delay5, 50, 150
  15.  
  16. ;-------------------------------------------END OF CONFIG SEGMENT--------------------------------------------------
  17.  
  18. Finished = 0
  19. Max = 0
  20. Max += Flask1 + Flask2 + Flask3 + Flask4 + Flask5
  21.  
  22.  
  23. While Finished < Max
  24. {
  25. Random, EnterHere, 1, 5
  26.  
  27. if (EnterHere = 1 and Flask1 != 0)
  28. {
  29.     Flask1 = 0
  30.     Finished ++
  31.     Sleep, Delay1
  32.     Send {1}
  33. }
  34.  
  35. if (EnterHere = 2 and Flask2 != 0)
  36. {
  37.     Flask2 = 0
  38.     Finished ++
  39.     Sleep, Delay2
  40.     Send {2}
  41. }
  42.  
  43. if (EnterHere = 3 and Flask3 != 0)
  44. {
  45.     Flask3 = 0
  46.     Finished ++
  47.     Sleep, Delay3
  48.     Send {3}
  49. }
  50.  
  51. if (EnterHere = 4 and Flask4 != 0)
  52. {
  53.     Flask4 = 0
  54.     Finished ++
  55.     Sleep, Delay4
  56.     Send {4}
  57.    
  58. }
  59.  
  60. if (EnterHere = 5 and Flask5 != 0)
  61. {
  62.     Flask5 = 0
  63.     Finished ++
  64.     Sleep, Delay5
  65.     Send {5}
  66.    
  67. }
  68. if (Finished = Max)
  69. {
  70.     break
  71. }
  72. }
  73. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement