Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  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. #SingleInstance
  7. #InstallKeybdHook
  8. #InstallMouseHook
  9.  
  10. SetTimer, MoveTimer, 128
  11.  
  12. return
  13.  
  14. MoveTimer:
  15. IfWinActive, Titan Quest
  16. {
  17. GetKeyState, state, MButton ; or what button you want it to be
  18. if state = D
  19. {
  20. MouseClick, left
  21. }
  22. GetKeyState, state, numpad0 ; or what button you want it to be
  23. if state = D
  24. {
  25. ;MouseClick, left
  26. }
  27. }
  28. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement