Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;AutoHotKey script for fast clicking
- ;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:
- setCapsLockState, AlwaysOff
- x := 25
- ;var for pause 25ms
- $~LButton::
- ; ~ passthough
- ; $ ignore trigger by ahk script
- ; what button was pressed to activate this script
- ; :: everything following this is the code of this function
- loop,
- {
- if GetKeyState("LButton","p") and GetKeyState("CapsLock","p")
- ;"p" represents the state "pressed"
- Send, {Click}
- else
- break
- sleep, x
- }
- return
- ; 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