Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- ; Generated by AutoGUI 2.2.0a
- #NoEnv
- #SingleInstance Force
- SetWorkingDir %A_ScriptDir%
- Gui -MinimizeBox -MaximizeBox
- Gui Add, Text, x12 y34 w115 h23 +0x200, Activation Hotkey:
- Gui Add, Text, x10 y58 w113 h24 +0x200, Deactivation Hotkey:
- Gui Add, Hotkey, x133 y33 w191 h21, ^j
- Gui Add, Hotkey, x132 y59 w189 h21, ^k
- Gui Add, Button, x6 y89 w321 h23, &Save Settings
- Gui Add, Button, x7 y118 w318 h23, &Reset Settings
- Gui Add, Text, x9 y3 w120 h23 +0x200, Automatically Stop After:
- Gui Add, Edit, x140 y5 w83 h21 +Number
- Gui Add, Text, x234 y2 w41 h23 +0x200, hours.
- Gui Show, w331 h157, Cookie Clicker Auto-Clicker
- Title = ""
- Activated = 0
- While(0 = 0)
- {
- WinGetActiveTitle, Title
- If InStr(Title, "Cookie Clicker")
- {
- If(Activated = 1)
- {
- Sleep, 1
- MouseClick, left
- }
- }
- }
- GuiEscape:
- GuiClose:
- ExitApp
- ^J:: Activated = 1
- ^K::ctivated = 0
Advertisement