1. ;
  2. ; AutoHotkey Version: 1.x
  3. ; Language: English
  4. ; Platform: Win9x/NT
  5. ;
  6. #InstallKeybdHook
  7. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  8. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  9. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  10. horiz=1430
  11. vert=600
  12. counter=0
  13. rowcounter=0
  14.  
  15. loop{
  16.  
  17. If loopy=D
  18. {
  19. WinWait, Diablo III,
  20. IfWinNotActive, Diablo III, , WinActivate, Diablo III,
  21. WinWaitActive, Diablo III,
  22. rowcounter=0
  23. horiz=1430
  24. vert+=100
  25. counter++
  26. while rowcounter<9
  27. {
  28. MouseClick, right, horiz, vert
  29. Sleep, 1500
  30. horiz+=56
  31. rowcounter++
  32. getkeystate,loopy,CapsLock,t
  33. if loopy=u
  34. {
  35. horiz=1430
  36. vert=600
  37. counter=0
  38. rowcounter=0
  39. break
  40. }
  41. }
  42.  
  43. }
  44. }