Tried to search forum and google but didn't find my question so I am making it here.
The question is how to separate SINGLE and DOUBLE keypress?
I tried to write a code to determine double click and succeeded, but... it fires both - single and then double (if double pressed) events.
I need CTRL+ALT+Y for single press and CTRL+ALT+SHIFT+Y for double press, but I don't want script to send CTRL+ALT+Y additionaly prior doing doublepress... It should be EITHER/OR condition. Maybe some kind of timer? But will not it interfere with double check?... Got my mind blown )))
Code: Select all
Numpad0::
{
if (A_PriorHotkey != A_ThisHotkey) || (A_TimeSincePriorHotkey > 400)
Send '^!y'
Else
Send '+^!y'
}