Hello all. Got a few questions, let's start with this one:
Code:
#persistent
#singleInstance
SetTimer, DoSomething, 3000
PauseDoSomething := NO
return
^#D::
if (PauseDoSomething == NO)
PauseDoSomething := YES
else
PauseDoSomething := NO
return
DoSomething:
if (PauseDoSomething == YES)
return
; Do Something Useful
...
return
In the above example, when ^#D is pressed or the timer triggers and DoSomething is executed, the variable PauseDoSomething is always empty. Any idea as to why that would be? It's first created and accessed in the Auto-Execute section, so it should be persistent at any point, or am I missing something?
Regards,
JHeikkilaJr[/code]