> Do use win.show to check it?

No. Try this:

If (anywindow("*total commander")) do
"i:\wav\Frog\OANIM13.WAV"
else
"i:\wav\Bee\BEE.WAV"
Endif

Note 1:
it is "endif" not "end if"

Note 2:
See Help, Index, "functions list", "Functions by Category",
section heading: "windows, tasks, processes"
for the difference between these:

If (visiblewindow("*total commander")) do
If (anywindow("*total commander")) do
If (activewindow("*total commander")) do

I guess you want anywindow.

Note 3:
Instead of checking for a window title (caption),
if you want to check if a program's exefile is running
you can use:

If (anywindow("=totalcmd")) do

Then it will always work, for all of that program's windows.

(That is correct if Total Commander's exefile is: totalcmd.exe.
I do not have that program, so I do not know its exe name.)



Attention: PowerPro's Web site has moved: http://www.ppro.org



YAHOO! GROUPS LINKS




Reply via email to