Advertisement
Guest User

Untitled

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