View Full Version : How do I make Girder not close only a particular program?
zalman
February 22nd, 2004, 01:25 AM
Using Girder's usual Window Close is very useful for closing programs launched from a launcher interface, but I find it is very easy to accidentally close the launcher program itself with the same button.
Is there anyway to do what the reverse of the "target" options do, which is exclude a particular program from being closed by the command rather than target a specific program?
miked
February 22nd, 2004, 01:33 AM
Probably the easiest way is to add an isforeground command, and have it go to the close window command only if it tests negative for the window you don't want to close.
So something like this:
isforeground
target: desired window to keep open always (never close)
first browse box: leave empty
second browse box: close_window command
eventstring: event that used to be off the close_window command
close_window command
So the only time close window is actually called is if the target window does not equal the window you want to keep open.
zalman
February 22nd, 2004, 10:03 PM
How do I add an "isforeground" command?
What are the first and second "browse boxes" ?
miked
February 22nd, 2004, 10:05 PM
Under the Girder tab --> Is Foreground in the drop down box. Make sure the window you want to target is around, press target, and then locate that window. Make sure to click apply!!!
zalman
February 22nd, 2004, 10:09 PM
Okay, thanks, I understand the "Browse" boxes now that they appear under the "Girder" tab you spoke of.
Just for clarification, are you saying to create a new command called "isforeground" or to add the "Is Foreground" attribute to the existing close command?
zalman
February 22nd, 2004, 10:18 PM
Okay, I re-read your first post and I believe you were saying to do it the latter way.
So I made a new command, named it "IsForeground"
I went to the "Girder" Tab for that command, and set the first box as "Is Foreground", opened up the "Target" dialogue box and set it for "myhtpc.exe", and opened the second "Browse" dialogue box and set it for the actual "Close" command which activates the actual "close window" command, and made sure to click "Apply"
Then I set the "IsForeground" command to take the actual remote event.
However, now it doesn't close anything... help?
zalman
February 22nd, 2004, 10:41 PM
Okay, I got it working!
It turns out I had messed up my actual Close command somehow, so that's why it wasn't making anything close.
Now it will close anything except myHTPC.exe
Thank you so much!
I Love you!
:P
miked
February 22nd, 2004, 11:31 PM
Glad it works!
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.