View Full Version : Check if program is active/correct window in foreground
Spiroo
January 23rd, 2003, 06:26 AM
There is a bug when launching k!tv while winamp is already running so before launching k!tv the program should check whether winamp is running.
I also need to know how to know if it is the correct window in the foreground or not...
Sorry for my english but I'm french :)
Ron
January 23rd, 2003, 06:31 AM
look at the "window exists" action and the "is foreground" action.
Spiroo
January 23rd, 2003, 07:08 AM
Ok...
And can I do this for a whole group of command ? I mean I got a group called "winamp" and another one called "ktv". so there is a lot of different event and a lot of commands. Can I do it with a single command ?
Ron
January 23rd, 2003, 07:13 AM
These commands jump based on if the application is running or is foreground.
Spiroo
January 23rd, 2003, 07:27 AM
I understood this but I do these jump command need an event to be runned or do they are checked automatically ?
Ron
January 23rd, 2003, 10:53 AM
aah okay :-)
You can put these commands on the remote events!
Spiroo
January 23rd, 2003, 11:36 AM
Allright.. it works now :)
I explain here so if someone has the same problem it would be helpfull.
1. create a group where all the command relative to a prog will be stored.
2. create a command with "Girder>group enable" and select the group created before.
3. create another command with "Girder>group disable" and select the same group.
4. create a command with : "Girder>is foreground" and select the window of the program. Then assign first name to the command that enableand the second to the one that disable the group where the commands are stored.
I hope you understand what I want to say :)
Spiroo
January 23rd, 2003, 03:36 PM
Well actually it doesn't work : group that should normally be disabled is still enabled : girder try to active the commands of this group.
So I don't know how to do :/
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.