Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. #NoEnv
  2. SendMode Input
  3. Coordmode, Mouse, Window
  4. SetTimer, Reset, 100
  5. x:: global Count := 1
  6.  
  7.  
  8.  
  9. #If WinActive("Old School RuneScape") AND Count(4, 1)
  10.  
  11. $WheelUp::
  12. $WheelDown::
  13. Click
  14. Return
  15.  
  16.  
  17.  
  18. #If WinActive("Old School RuneScape") AND Count(4, 2)
  19.  
  20. $WheelUp::
  21. $WheelDown::
  22. MouseMove, 0, 36, 0, R
  23. Return
  24.  
  25.  
  26.  
  27. #If WinActive("Old School RuneScape") AND Count(4, 3)
  28.  
  29. $WheelUp::
  30. $WheelDown::
  31. Click
  32. Return
  33.  
  34.  
  35.  
  36. #If WinActive("Old School RuneScape") AND Count(4, 4)
  37.  
  38. $WheelUp::
  39. $WheelDown::
  40. MouseMove, 0, -36, 0, R
  41. Return
  42.  
  43.  
  44.  
  45. Reset:
  46. If (A_TimeSinceThisHotkey > 100000)
  47. Count := 1
  48. Return
  49.  
  50.  
  51.  
  52.  
  53. MouseWithin(X1, Y1, X2, Y2) {
  54. MouseGetPos, MX, MY
  55. If (MX < X1) OR (MX > X2) OR (MY < Y1) OR (MY > Y2)
  56. Return 0
  57. Return 1
  58. }
  59.  
  60. Count(Limit, Check) {
  61. If (Count = Check) {
  62. Count := ((Count >= Limit) ? 1 : Count + 1)
  63. Return True
  64. }
  65. Return False
  66. }
  67.  
  68. #maxhotkeysperinterval 2000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement