thisisthepastebinuse

Terraria autoclicker (alt version for left mouse button)

Jun 8th, 2020
1,537
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. 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
  8.  
  9. #IfWinActive ahk_exe Terraria.exe
  10.  
  11. $LButton::
  12. SendEvent, {LButton Down}
  13. Sleep, 50
  14. SendEvent, {LButton Up}
  15. Sleep, 200
  16. While, GetKeyState("LButton", "P"){
  17.     SendEvent, {Click}
  18. }
  19. Return
RAW Paste Data