Advertisement
ldykillr78

Autohotkey-Mouse fix

Mar 3rd, 2024 (edited)
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Requires AutoHotkey v2.0
  2.  
  3. ;fix l mouse bounce
  4. ; ------------------------------------
  5. ; fix l mouse bounce
  6. ; left mouse
  7. ; ------------------------------------
  8.  
  9. ;LButton::
  10. If (A_TimeSincePriorHotkey < 0.5) ;80 hyperclick
  11.     Return
  12. sendinput {LButton down}
  13. KeyWait, LButton
  14. sendinput {LButton up}
  15. return
  16. }
  17.  
  18. ;fix mouse wheel bounce
  19. ; ------------------------------------
  20. ; fix mouse wheel bounce
  21. ; mouse wheel
  22. ; ------------------------------------
  23. WheelUp::
  24. {
  25.     global WheelDownon
  26.     global WheelUpon
  27.    
  28. if (WheelUpon = 1)
  29.     {
  30.     SendInput("{WheelUp}") ; WheelMult
  31.     WheelDownon := "0"
  32.     SetTimer wheelDownonF, 500
  33.     }
  34.  
  35. return
  36. }
  37.  
  38. WheelDown::
  39. {
  40.     global WheelUpon
  41.     global WheelDownon
  42.  
  43. if (WheelDownon = 1)
  44.     {
  45.     SendInput("{WheelDown}") ; WheelMult
  46.     WheelUpon := 0
  47.     SetTimer wheelUponF, 500
  48.     }
  49.  
  50. }
  51.  
  52. WheelUpOnF()
  53. {
  54. global WheelUpon
  55. WheelUpon := 1
  56. SetTimer WheelUpOnF, 0
  57. return
  58. }
  59.  
  60. WheelDownOnF()
  61. {
  62. global WheelDownon
  63. WheelDownon := 1
  64. SetTimer WheelDownOnF, 0
  65. return
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement