My work computer build is 1909.
EDIT: Added part of the script to help
Code: Select all
CapsLock::
if (num_caps_presses > 0) ; SetTimer already started, so we log the keypress instead.
{
num_caps_presses += 1
return
}
num_caps_presses := 1
SetTimer, caps_presses_timer, -200 ; Wait for more presses within a 200 millisecond window.
return
caps_presses_timer:
if (num_caps_presses = 1) ; The key was pressed once.
{
num_caps_presses := 0
Goto BUILDGUI ; build gui
}
else if (num_caps_presses = 2) ; The key was pressed twice.
{
Send #!{Space} ; win+alt+space, opens MS Power Toys Run
}
num_caps_presses := 0
return
BUILDGUI:
etc etc...