for example, there are keys like this
Code: Select all
#if, getkeystate("capslock", "p") && winactive("ahk_class Chrome_WidgetWin_1")
f::send !d
return
what it does is when I press and hold capslock and then press f key, it sends me to chrome search field, easy and simple.
and right after, I will start typing words to search google.
but here's the trouble, the pressing of hotkey usually happens so fast so before I release capslock key, I already start searching words while capslock is still kept pressed, which certainly is not good thing because the first one or two characters will not be published.
so I am wondering if there's workaround I can make capslock releases itself back when the hotkey is completed, for the above case at the moment I finish pressing F key, so that the next key press, whichever it is, will not be affected by capslock any way.
wish there's my guardian angel out there!