PDA

View Full Version : Either open a program (if not open) or switch to (if open)



emg178
May 7th, 2003, 09:00 AM
This should be simple, but I don't see how to do it.
I want to either switch to a program if it is already open or open it if it is not.
I could do this if there was a 'is running' type of command.
What solutions do people use for this?

JimHugh
May 7th, 2003, 09:38 AM
Create three commands

First command uses Girder | Window Exists with target of desired app and has eventstring assigned to it. It points to second and third commands with Browse button.

Window exists - Second command (top browse button) uses Window | Setfocus with same target as first.

Window does not exist - Third command (bottom browse button) Starts application.

emg178
May 7th, 2003, 09:52 AM
Thanks Jim. Exactly what I was looking for.