-
as long as i know, you can't iterate all existing windows.
The simplest way to do this, is haveing seperate hotkeyfiles..
Edit: ah, i think you can do it another way using: WinExists.
Try the follwoing:
Code:
<Hotkey ScrollLockOn Oem3 LButton, MButton, RButton, Button4, Button5>
<If WinExists WoW1>
<SendLabel w1>
<ClickMouse %TriggerMainKey%>
<EndIf>
<If WinExists WoW2>
<SendLabel w2>
<ClickMouse %TriggerMainKey%>
<EndIf>
<If WinExists WoW3>
<SendLabel w3>
<ClickMouse %TriggerMainKey%>
<EndIf>
<If WinExists WoW4>
<SendLabel w4>
<ClickMouse %TriggerMainKey%>
<EndIf>
<If WinExists WoW5>
<SendLabel w5>
<ClickMouse %TriggerMainKey%>
<EndIf>
..not elegant, but maybe working
-
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.