Use the "Write a Value to the Event Log" action to output the values of the variables and tokens you're checking.
Understanding how to debug your commands is essential when using advanced features.
Actually, what's not included in the code above is my Text to Speech lines.
I uses these lines to tell me what variable values are what as I run a command and step through things.
In that case, the Boolean Var_notMYPROFILE value of TRUE was not being recognized by the pooling command.
Even though I pressed the 'F7' key.
To which I can only chop that up to some timing issue.
Which is why I have the timer loop in the polling command in order to try to capture the Boolean.
It still doesn't. So I'm left thinking that when I press the 'F7' key, the POLLING command picks up the KEYSTATE of that press even before the 'F7' command itself, and then somehow just locks out the 'F7' command from updating the global variable and or reading any global variable set by the 'F7' command itself.
I mean, if the 'F7' Command actually set the global boolean variable to TRUE, then by all rights the LOOP in my Polling command should at least recognize that, but again, on my variable check in that section, it doesn't.
I suppose I'll try to fiddle with it more....
Welcome anyone else as well within the community to offer their thoughts.
Thanks!