Advertisement
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.
- Gui, Add, Tab, x2 y-1 w297 h225 , About|AutoLB|
- Gui, Tab, About
- Gui, Font, S15 CDefault, Comic Sans MS Bold
- Gui, Add, Text, x65 y70 w700 h70 , Auto Clicker
- Gui, Font, S15 CDefault, Comic Sans MS Bold
- Gui, Add, Text, x65 y110 w200 h40 , Made by Grzegorz
- Gui, Font, S10 CDefault, Comic Sans MS Bold
- Gui, Add, Text, x5 y205 w210 h17 , Version: 1.0
- Gui, Tab, AutoLB ; Auto left button tab
- Gui, Add, Text,, Minimum CPS
- Gui, Add, Slider, vMin gMin ToolTip Range0-100, 10
- Gui, Add, Text,, Maximum CPS
- Gui, Add, Slider, vMax gMax ToolTip Range0-100, 17
- Gui, Add, Hotkey, vHK gLabel
- Gui, Add, CheckBox, vCB x+5, Win
- Gui, Show,,Dynamic Hotkeys
- Gui, Show, x50 y50 h225 w300, Auto Clicker by Grzegorz
- Gui, Submit, NoHide
- Return
- Label:
- If HK in +,^,!,+^,+!,^!,+^! ;If the hotkey contains only modifiers, return to wait for a key.
- return
- If (savedHK) { ;If a hotkey was already saved...
- Hotkey, %savedHK%, Label1, Off ; turn the old hotkey off
- savedHK .= " OFF" ; add the word 'OFF' to display in a message.
- }
- Gui, Submit, NoHide
- If CB ;If the 'Win' box is checked, then add its modifier (#).
- HK := "#" HK
- If StrLen(HK) = 1 ;If the new hotkey is only 1 character, then add the (~) modifier.
- HK := "~" HK ; This prevents any key from being blocked.
- Hotkey, %HK%, Label1, On ;Turn on the new hotkey.
- savedHK := HK ;Save the hotkey for future reference.
- return
- ;This label may contain any commands for its hotkey to perform.
- Label1:
- MsgBox,% A_ThisLabel "`n" A_ThisHotkey
- return
- Min:
- {
- Gui, Submit, NoHide
- }
- return
- Max:
- {
- Gui, Submit, NoHide
- }
- return
- ;Autoclicker
- Hotkey,savedHK, *LButton, Toggle
- *LButton::
- Send,{LButton}
- While GetKeyState("LButton", "P")
- {
- Send,{LButton}
- Random, delay, %Min%, %Max%
- Sleep %delay%
- }
- return
- GuiClose:
- ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement