Advertisement
bauerbach

Cookie Clicker AutoHotkey Automation Script

Apr 9th, 2018
510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn  ; Enable warnings to assist with detecting common errors.
  3. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  5.  
  6. ; Generated by AutoGUI 2.2.0a
  7. #NoEnv
  8. #SingleInstance Force
  9. SetWorkingDir %A_ScriptDir%
  10.  
  11. Gui -MinimizeBox -MaximizeBox
  12. Gui Add, Text, x12 y34 w115 h23 +0x200, Activation Hotkey:
  13. Gui Add, Text, x10 y58 w113 h24 +0x200, Deactivation Hotkey:
  14. Gui Add, Hotkey, x133 y33 w191 h21, ^j
  15. Gui Add, Hotkey, x132 y59 w189 h21, ^k
  16. Gui Add, Button, x6 y89 w321 h23, &Save Settings
  17. Gui Add, Button, x7 y118 w318 h23, &Reset Settings
  18. Gui Add, Text, x9 y3 w120 h23 +0x200, Automatically Stop After:
  19. Gui Add, Edit, x140 y5 w83 h21 +Number
  20. Gui Add, Text, x234 y2 w41 h23 +0x200, hours.
  21.  
  22. Gui Show, w331 h157, Cookie Clicker Auto-Clicker
  23. Title = ""
  24. Activated = 0
  25. While(0 = 0)
  26. {
  27.     WinGetActiveTitle, Title
  28.     If InStr(Title, "Cookie Clicker")
  29.     {
  30.         If(Activated = 1)
  31.         {
  32.             Sleep, 1
  33.             MouseClick, left
  34.         }
  35.     }
  36. }
  37. GuiEscape:
  38. GuiClose:
  39.     ExitApp
  40.  
  41. ^J:: Activated = 1
  42.  
  43. ^K::ctivated = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement