autohotkey - AHK Prevent Multiple Hotkey Triggers -


it's quite simple code. want mousewheeldown send p once. if scroll 3 times, want send p once every 100ms or sth. here small bit of code far:

    setkeydelay , -1, 50     #notrayicon     #noenv     #persistent     #maxmem 2      wheeldown::     send {p}     return 

sleeping bit after sending keystroke solve problem.

wheeldown:     send, p     sleep, 100 return 

also, not need put p between {}-s (curly braces), not special key. sleep command takes it's parameter milliseconds, if example want allow 1 'p' in second, write sleep, 1000.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -