Thanks in advance for any efforts people put in to help me!
I have the code below (I'll call it the "NumpadDown" code) which has been working great for me .
Code: Select all
NumpadDown::
{
KeyWait, NumpadDown
KeyWait, NumpadDown, D T.1
If (!ErrorLevel)
{
goto, subNumpadDown
}
else {
; Do this if key just single pressed
WinMinimize, A
}
}
return
subNumpadDown: ;come here if double press
{
Send {alt down}{2 down}
Sleep, 5
Send {2 up}{alt up}
Sleep, 5
}
Return
Code: Select all
NumpadAdd & NumpadDown::
KeyWait NumpadAdd
KeyWait NumpadDown
Send, ^d
Return
What I wanted it to do was just run the "NumpadAdd & NumpadDown" code. And of course, when I run the "NumpadDown" code, I don't want it to run the "NumpadAdd & NumpadDown" code.
If anyone has any ideas on how to get the two codes to run independently, that would be much appreciated!
Thank you!