How do I make a script work ONLY when a button is NOT being held down
Posted: 24 Jan 2022, 20:33
Hello kind humans, I want the following:
I press the windows left key, A happens.
I press and hold the windows left key, normal windows stuff happens.
So for example, if I press LWin a program starts, but if I press Lwin+Shift+S a normal windows screeenshot happens.
I already have the 'A happens' part covered, but I need a way to let AHS know "yeah look if I hold this key more than X ms then forget about opening anything thank you".
This is my script:
PD: The program is Launchy, which replaces the search and run stuff you usually do with the windows key, and Launchy is launched by alc+space in default options.
I press the windows left key, A happens.
I press and hold the windows left key, normal windows stuff happens.
So for example, if I press LWin a program starts, but if I press Lwin+Shift+S a normal windows screeenshot happens.
I already have the 'A happens' part covered, but I need a way to let AHS know "yeah look if I hold this key more than X ms then forget about opening anything thank you".
This is my script:
Code: Select all
lwin::
Send {LAlt down}{Space}{LAlt up}
return