By looking at other posts I have come so far with my code, but there is one big problem:
Code: Select all
$LWin::
startTime := A_TickCount ;record the time the key was pressed
KeyWait, LWin, U ;wait for the key to be released
keypressDuration := A_TickCount-startTime ;calculate the duration the key was pressed down
if (keypressDuration > 200) ;if the key was pressed down for more than 200ms send >
{
Return
}
else ;if the key was pressed down for less than 200ms send LWin
{
Send {LWin}
}
return
I have absolutely no idea how I can achieve my desired behavior and am not even sure if I have taken the right approach to begin with. I am hoping someone here knows the solution to this problem as I am a bit lost.
Cheers!