Using a hotkey in KeyWait
Posted: 18 Jul 2017, 07:02
I want to use a mouse button that has proven impossible to register (tried MouseHook, AHKHID). Seems easiest to use other suggestion in docs and define that button as an hotkey in my mouse software, then get the script to trigger from that hotkey. Tried using the example given (Ctrl+F1), but my script uses KeyWait, and KeyWait doesn't like using a hotkey.
Script:
I know I can use a single key, but I wanted to use at least 1 modifier to keep it unique.
Any way to use a hotkey with KeyWait?
Script:
Code: Select all
^F1::
KeyWait, ^F1, T.5
If ErrorLevel
{
Send ^!{Tab}
Send {Ctrl Up}{AltUp}
}
Else
{
Send !{Tab}
Send {Alt Up}
}
Return
Any way to use a hotkey with KeyWait?