> ; if program has window open
> if (anywindow "*window name*") Do
>       ; close the program
>       keys {to "*window name*"}closestring
> else
> ; if no program window open, run program
>       "program pathname"
> endif

If you want something tighter...you can use:

IfElse (anywindow "=exename",Window close "=exename",c:\pathtoexe)

I can't remember all the ins and outs of IfElse, it might require running
from a script file though...

David Troesch  |  Atlanta, GA  |  ICQ# 2333123
Do you have the right computer stuff? http://tinyurl.com/ytu7z
Funstuff: I tried an internal modem, but it hurt when I walked.



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to