Advertisement
Guest User

Broken mouse click fix

a guest
Apr 1st, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  3. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  4.  
  5. LButton:: If ( A_TimeSincePriorHotkey < 50 )
  6. SendInput, {Lbutton Down}
  7. return
  8. Lbutton Up::SendInput, {Lbutton Up}
  9.  
  10. MButton:: If ( A_TimeSincePriorHotkey < 50 )
  11. SendInput, {MButton Down}
  12. return
  13. Mbutton Up::SendInput, {MButton Up}
  14.  
  15. RButton:: If ( A_TimeSincePriorHotkey < 50 )
  16. Sendinput, {Rbutton Down}
  17. return
  18. Rbutton Up::SendInput, {Rbutton Up}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement