Oh, one other thing about ClickMouse. Make sure "Substitute SendWinS for SendWinM with ClickMouse" is checked on the Settings Panel. It's supposed to be checked by default but maybe when I added it, there was a bug in the settings file code that screwed up. That code got added months ago but there was never a single bug report about it one way or the other so who knows.

Oli's solution works in this case because all your WoWs are on the local machine but other people should keep in mind that IfWinExists doesn't know about remote machines.

Red error messages from non-existent windows won't hurt anything in this case. I'm not sure whether red messages or If's would be faster but the difference is probably only a few millionths of a second so it doesn't really matter.