Advertisement
J2Goated1

GAG Spawner Script

Jun 15th, 2025 (edited)
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. #SingleInstance Force
  2. #Persistent
  3. CoordMode, Mouse, Screen
  4. SetWorkingDir %A_ScriptDir%
  5.  
  6. ; Cooldown Timing
  7. totalCooldown := 114000 ; 1:54 in ms
  8. waitToClick := 39000 ; Wait 39 seconds to reach 1:15
  9. postClickWait := 72000 ; Wait remaining cooldown: 1:12 (114s - 39s - 3s)
  10. toggle := false
  11. cycleRunning := false
  12.  
  13. ; GUI
  14. Gui, +AlwaysOnTop -SysMenu +ToolWindow
  15. Gui, Font, s10, Segoe UI
  16. Gui, Add, Text, vStatusText w250 Center, Status: ❌ OFF
  17. Gui, Add, Button, gToggleScript w250, ▶️ Start / Stop
  18. Gui, Add, Text, vCountdownText w250 Center, Next click in: N/A
  19. Gui, Show, , 🐸 Echo Frog Clicker
  20.  
  21. SetTimer, UpdateCountdownDisplay, 1000
  22. return
  23.  
  24. ToggleScript:
  25. toggle := !toggle
  26. if (toggle) {
  27. GuiControl,, StatusText, Status: ✅ ON
  28. StartCooldownCycle()
  29. } else {
  30. GuiControl,, StatusText, Status: ❌ OFF
  31. SetTimer, CooldownCycle, Off
  32. SetTimer, CountdownTick, Off
  33. GuiControl,, CountdownText, Next click in: N/A
  34. cycleRunning := false
  35. }
  36. return
  37.  
  38. StartCooldownCycle() {
  39. if (!cycleRunning) {
  40. cycleRunning := true
  41. nextClickIn := waitToClick / 1000
  42. timeLeft := totalCooldown / 1000
  43. SetTimer, CountdownTick, 1000
  44. SetTimer, CooldownCycle, -%waitToClick%
  45. }
  46. }
  47.  
  48. CooldownCycle:
  49. ; First click at 1:15
  50. ClickAutoMiddle()
  51.  
  52. ; Second click after 3 sec
  53. SetTimer, SecondClick, -3000
  54.  
  55. ; Wait the rest of the cooldown
  56. SetTimer, NextCycle, -%postClickWait%
  57. return
  58.  
  59. SecondClick:
  60. ClickAutoMiddle()
  61. return
  62.  
  63. NextCycle:
  64. if (toggle) {
  65. nextClickIn := waitToClick / 1000
  66. timeLeft := totalCooldown / 1000
  67. SetTimer, CooldownCycle, -%waitToClick%
  68. } else {
  69. SetTimer, CountdownTick, Off
  70. GuiControl,, CountdownText, Next click in: N/A
  71. cycleRunning := false
  72. }
  73. return
  74.  
  75. ClickAutoMiddle() {
  76. MouseMove, 1185, 585
  77. Click
  78. }
  79.  
  80. CountdownTick:
  81. if (!toggle)
  82. return
  83.  
  84. nextClickIn--
  85. timeLeft--
  86.  
  87. if (nextClickIn < 0)
  88. nextClickIn := 0
  89.  
  90. mins := Floor(nextClickIn / 60)
  91. secs := Mod(nextClickIn, 60)
  92. GuiControl,, CountdownText, Next click in: % Format("{:02}:{:02}", mins, secs)
  93. return
  94.  
  95. GuiClose:
  96. ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement