Hello Joel,
> Can anybody help me with a simple script to keep a specific program
> running? In other words, it should just check if a program is running,
> and if it isn't launch it again (tray minned).
Here it is in the format used in a script file:
If(not anywindow("=myprogram"))do
c:\pathto\myprogram.exe
window traymin =myprogram
endif
Substitute the name of the program's exe instead of "myprogram".
If the script is in a command list instead of in a file,
each of those lines represents one Item in the command list.
For example line 1 above becomes the first Item in the list:
Command: *Script
Action: If
Enter expression...: (not anywindow("=myprogram"))do
There are various ways to run that script regularly, such as:
In the main config dialog, Command Lists tab, click Setup,
in the next dialog, Special Lists tab, check or gray-check
"Run monitor...".
Now make a new command list called Monitor, containing the four
items described above. All items in the Monitor command list are
run consecutively as a script, repeated every 1 or 2 seconds.
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12hh5k9d3/M=362131.6882499.7825260.1510227/D=groups/S=1706030409:TM/Y=YAHOO/EXP=1124426304/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
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/