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.
- #SingleInstance Force
- MsgBox, 0x30, Terraria autoclicker warning, This program will only work if the Terraria executable is called "Terraria.exe", without the quotes. It will also only work when the Terraria window is active.`nTry running this as administrator if it doesn't work at first.`n`nKeep the left mouse button pressed to autoclick.`n`nSource code: https://pastebin.com/iFfZrRAc
- #IfWinActive ahk_exe Terraria.exe
- $LButton::
- SendEvent, {LButton Down}
- Sleep, 50
- SendEvent, {LButton Up}
- Sleep, 200
- While, GetKeyState("LButton", "P"){
- SendEvent, {Click}
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment