I was trying to create a code the press a hotkey (example: numlock), and it starts to timer counter, so if i press the same hotkey before it's 15 seconds, it'll press shift + numlock, otherwise, would press numlock again. Could anyone help me?
I tried this but it's not working, idk why
Code: Select all
NumLock::
If Started
{
SetTimer, Counter, off
Send {NumLock}
}
Else
{
If Timer < 14000
{
Send +{Numlock}
}
Else
{
Send {Numlock}
}
}
Return