0x0049

hellevator

May 12th, 2015
407
0
Never
1
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.  
  6. ;Windows must start with the match text
  7. SetTitleMatchMode, 1
  8. ;Only do these if the active window's title starts with "Terraria"
  9. #IfWinActive, Terraria
  10. {
  11.     Pause
  12.     Option = 1
  13.     StartedClick = 0
  14.  
  15.     while (true) {
  16.         if (StartedClick == 0) {
  17.             Click down
  18.             startedClick = 1
  19.         }
  20.  
  21.         if (Option == 1) {
  22.             MouseMove, 10, 0, 0, R
  23.             Sleep 50
  24.             MouseMove, -10, 0, 0, R
  25.             Sleep 50
  26.         }
  27.  
  28.         else if (Option == 2) {
  29.             MouseMove, 0, -15, 0, R
  30.             Sleep 50
  31.             MouseMove, 0, 30, 0, R
  32.             Sleep 50
  33.             MouseMove, 0, -15, 0, R
  34.             Sleep 50
  35.         }
  36.     }
  37.  
  38.     NumpadDiv::
  39.         Option = 1
  40.         Pause, Off
  41.     return
  42.  
  43.     NumpadMult::
  44.         Option = 2
  45.         Pause, Off
  46.     return
  47.  
  48.     NumpadSub::
  49.         if (StartedClick == 1) {
  50.             Click up
  51.             StartedClick = 0
  52.         }
  53.  
  54.         Pause
  55.     return
  56. }
  57. #IfWinActive
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment