View Full Version : Can I trigger a command when app is open/closed?
CJSnet
November 10th, 2003, 04:23 AM
Hi, I've covered this in another thread but it got a bit confused and no solution was found. I've now simplified what I need, which is:
Girder to run a command when an app is running
Girder to run another command when that app stops running
The app in question is MCE, and the command will be a keyboard shortcut. Is this possible?
Bitmonster
November 10th, 2003, 08:50 AM
Do you want your command executed immediately after the program starts or shuts down?
If so you can simply use the events created by the TaskCreate plugin.
CJSnet
November 10th, 2003, 08:59 AM
That's what I want. Sadly I've tried and it doesn't work - it seems to execute the commands when any program starts. Can you give me step-by-step instructions please? Sorry to be a bore.
Bitmonster
November 10th, 2003, 09:19 AM
OK, you first need two commands to assign the events to. I suggest to use something simple first like two "Simple OSD" commands.
It is sometimes hard to learn the right event, if you have many plugins enabled, because they all might fire events if you start to do the action you want to learn. So disable temporarily all plugins except the TaskCreate plugin and mayby the Logger plugin if you want to see what is happening.
Highlight your first command, press "Learn" and start the wanted application. Girder should now have captured the EventString "MCE.exe [CREATE]" or something like this.
Now highlight the second command, press "Learn" and close the wanted application. Girder should now have captured the EventString "MCE.exe [CLOSE]" or something like this.
That's all. You should now have two commands and one gets triggered if the application starts and the other if it closes.
Bitmonster
November 10th, 2003, 09:20 AM
And make sure you don't have a checkmark on the "Inverted" box.
Selyb
November 11th, 2003, 09:17 AM
what exactly does that 'inverted' option do?
Bitmonster
November 11th, 2003, 10:07 AM
what exactly does that 'inverted' option do?
It inverts the event. So if you have learned the event "myEvent" and tick "Inverted" the command will be executed from EVERY event of this device that is NOT "myEvent".
Selyb
November 11th, 2003, 10:12 AM
aahhhhhhhh
that clarifies that
thx
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.