I’m not a AutoHotKey guru, and I’m having trouble with decrementing a variable if it is above 0 once per second:
Loop
{
If spaceFreq > 0
spaceFreq--
If returnFreq > 0
returnFreq--
Sleep, 1000
}
What is the problem with this script? The variables are not being reduced.
Read more here about decrementing…
I suggest using SetTimer, instead of a loop and sleep..
ex: