Advertisement
Tiavor

AutoHotKey script for fast clicking

Feb 20th, 2018
2,592
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;AutoHotKey script for fast clicking
  2.  
  3. ;I am using capslock as function key, you can use any other button if you want, but for my case, I'll disable it's normal function:
  4. setCapsLockState, AlwaysOff
  5.  
  6. x := 25
  7. ;var for pause 25ms
  8. $~LButton::
  9. ; ~ passthough
  10. ; $ ignore trigger by ahk script
  11. ; what button was pressed to activate this script
  12. ; :: everything following this is the code of this function
  13. loop,
  14. {
  15.   if GetKeyState("LButton","p") and GetKeyState("CapsLock","p")
  16. ;"p" represents the state "pressed"
  17.     Send, {Click}
  18.   else
  19.     break
  20.   sleep, x
  21. }
  22. return
  23. ; return is only needed if you have more than one action/function in the script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement