Guest User

Terraria Auto-Clicker

a guest
May 20th, 2011
2,354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.04 KB | None | 0 0
  1. #include <Misc.au3>
  2. Opt("TrayIconHide", 1)
  3.  
  4. Msgbox(0, "Terraria Auto-clicker", "Waiting for Terraria...")
  5. while 1
  6.     if ProcessExists("Terraria.exe") then
  7.         Msgbox(0, "Terraria Auto-clicker", "Auto-clicker Activated" & @CRLF & @CRLF &"Press 'U' To Exit" & @CRLF & "Press And Hold 'R' To Rapid Left-Click" & @CRLF & "Press 'T' To Hold Left Mouse Down, And Again To Stop It")
  8.         while ProcessExists("Terraria.exe")
  9.             if _Ispressed("54") then
  10.                 mouseDown("Left")
  11.                 sleep(100)
  12.                 while 1
  13.                     if _Ispressed("54") then
  14.                         mouseup("left")
  15.                         ExitLoop
  16.                     EndIf
  17.                     sleep(50)
  18.                 WEnd
  19.             EndIf
  20.             sleep(50)
  21.  
  22.             while _Ispressed("52")
  23.                 mouseclick("left")
  24.                 sleep(5)
  25.             wend
  26.             sleep(50)
  27.  
  28.             if _ispressed("55") then
  29.                 ExitLoop
  30.             endif
  31.  
  32.             while NOT Winactive("Terraria") AND ProcessExists("Terraria.exe")
  33.                 sleep(5)
  34.             wend
  35.             sleep(50)
  36.         wend
  37.         MsgBox(0, "Terraria Auto-Clicker", "Auto-Clicker Closing" & @CRLF & @CRLF & "Thank you for using Terraria Auto-Clicker. Made by Miffy")
  38.         exit
  39.     endif
  40.     sleep(500)
  41. wend
Add Comment
Please, Sign In to add comment