Add "Status window" to %dontshow won't work because the variable is space separated...
And you second condition is wrong because you're checking $window().State and it will always be different of "Status Window"
Use :
Code:
if ($window(*,%a).state == hidden) && ($window(*,%a) != Status Window)
Should work



#mircscripting @ irc.swiftirc.net == the best mIRC help channel