PDA

View Full Version : 'Window Is Foreground?' help



dhersey
August 28th, 2007, 03:38 PM
I'd read the help on Windows Conditional actions but I can't seem to get 'Window Is Foreground?' working.

Before I added this I had a basic file built that just sent the Up Arrow to a specific window (MainLobby) and this worked fine. I added the 'Window Is Foreground?' to the group, selected the window (again, MainLobby) using the Window Picker button.

In the conditional jumps I had the group selected for 'focus' and nothing for not focused.

Unfortunatly the Up Arrow worked regardless of the status of the app. After playing with it for a bit I could not find any combination of settings that would stop an event if the window is not in focus.

Any help would be great.

Ron
August 28th, 2007, 03:39 PM
Post your GML so we can have a look.

dhersey
August 28th, 2007, 03:45 PM
Thanks for taking a look Ron.

Here is the file.

Ron
August 28th, 2007, 04:40 PM
You had that one linked up incorrectly. Have a look at how it did it here.

dhersey
August 28th, 2007, 04:47 PM
Thanks Ron. I guess from the help file I got the impression that the condition was applied to the entire group rather than a single event.

I'll get cracking on this and will be using my remote after dinner ;)

Ron
August 28th, 2007, 04:51 PM
You used an action instead of the conditional. The action actually offers better performance, so stick with that.