I get the point of HotkeyInterval and MaxHotkeysPerInterval to prevent troublesome loops.
However, instead of fiddling with values for the complete script, can I have a custom setting for specific commands?
My case:
I'm using autohotkey in conjunction with a program called intercept to program a 2nd and 3rd keyboard as keypads.
I've programmed the arrow keys as WMP controls; up/dwn is volume. Volume is something I'd like to be able to HOLD down instead of tap repeatedly, so this is a SAFE case where I want generous values, but still have a max interval of say, 5 seconds.
On the other hand, I would want a VERY RESTRICTIVE value for my program launchers - I wouldn't want a glitch to spam-open MS Word windows - or League of Legends instances - even for one second!
I tried the following as a quick test, but it didn't work, acting on the default values for both arrow keys.
Code: Select all
#HotkeyInterval 1000
#MaxHotkeysPerInterval 200
up::ControlSend, , {F9}, Windows Media Player
#HotkeyInterval 2000 ; This is the default value (milliseconds)
#MaxHotkeysPerInterval 70 ; This is the default value (milliseconds)
down::ControlSend, , {F8}, Windows Media Player
Thanks