Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. toggle := false
  2. #MaxThreadsPerHotkey 2
  3.  
  4. #IfWinActive, Diablo III
  5. {
  6. *`::
  7. toggle := !toggle
  8. if toggle {
  9. SetScrollLockState, on
  10. } else {
  11. SetScrollLockState, off
  12. }
  13. counterA:=0
  14. while toggle {
  15. if WinActive("Diablo III") {
  16. PixelSearch, , , 1381, 931, 1381, 931, 0x53531A, 10, Fast ; If resource about like 90%?
  17. if (ErrorLevel = 0)
  18. {
  19. PixelSearch, , , 936, 34, 973, 34, 0xFF6969, 0, Fast ;0x793232 ;?0xFF6969
  20. if (ErrorLevel = 0)
  21. {
  22. Send *{RButton}
  23. }
  24. else
  25. {
  26. ErrorLevel:= 0
  27. PixelSearch, , , 935, 34, 973, 34, 0x00FFFF, 0, Fast ; YELLOW
  28. if !ErrorLevel
  29. Send *{RButton}
  30. }
  31. }
  32. ErrorLevel:= 0
  33. if (!GetKeyState("Space") && !GetKeyState("F1") && !GetKeyState("1") && !GetKeyState("RButton"))
  34. {
  35. if (counterA > 1)
  36. {
  37. ControlClick,x960 y509,Diablo III,,L,,pos ; Clicking Waypoint
  38. counterA := 0
  39. }
  40. else
  41. {
  42. ControlClick,x960 y507,Diablo III,,L,,pos ; Clicking Waypoint
  43. counterA := counterA+1
  44. }
  45. }
  46. Send {F3}
  47.  
  48. } else {
  49. toggle := !toggle
  50. SetScrollLockState, off
  51. }
  52. }
  53. return
  54. }
  55.  
  56. RandomSleep(min, max) {
  57. Random, rand, min, max
  58. Sleep rand
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement