thisisthepastebinuse

Terraria autoclicker - auto swing/shoot everything

May 26th, 2020
3,246
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. #SingleInstance Force
  6.  
  7. ; Exe file here: https://mega.nz/file/fExgUaRY#0wfxlVdBLDYUMfrH-qfI_0CSWnUShbeNKxPQS7FPRMY
  8.  
  9. 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`nPress the scroll wheel to autoclick.`n`nSource code: https://pastebin.com/mPDZRst1
  10.  
  11. #IfWinActive ahk_exe Terraria.exe
  12.  
  13. $MButton::
  14. While, GetKeyState("MButton", "P"){
  15.     SendEvent, {Click}
  16. }
  17. Return
RAW Paste Data