autohotkeys expression not evaluating -


i have simple autohotkeys macro test if window active. if it's active, want stop until window becomes inactive , re-activated again.

the problem test whether window inactive not working. here code:

^w:: ;hotkey fires   done = false  settimer, checkpopups, 10000    ; check every 10 seconds annoying popup  checkpopups:   if ( winactive("volume spike - down") )   { ;specific lines when active window true msgbox (%done%) if (!done) {   msgbox hello   done := true   } }  ifwinnotactive volume spike - down { done = false msgbox not }  return 

when runs, first message box indicating state of done (which false @ beginning). (!done) not evaluate true , second message box (hello) not fired. idea wrong here?

autohotkey conceives true / false-boolean expressions 1 / 0. if you, wouldn't use former keywords @ all.

but still, can, have change initialisation to

done := false 

(store expression). done = false same done := "false" (string assignment). afaik, change to

done = %false% 

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -