--- In [email protected], "Bill Kerr" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I have used a few of power-pro's features for years now.
> But I have hit a small problem.
> I use Alt-Spacebar to run AZZ Cardfile, but if I minimize it by 
> clicking on the Min box at the top right of its window, it will 
> not 'switch to if active', by using the hot key again, but tries to 
run 
> another copy. (Which it doesn't allow.)
> 
> Any help appreciated!
> 
> Bill
>

Find a way to detect if the program is running and rewrite your 
hotkey with an if statement of the following general structure
if (program is running)
win.show(program)
else
run program

Of course, this is not runnable code.  You need to change it to apply 
to your program.

Put the runnable code for the above in more commands and put ; in 
command entry control first line.

How can you detect if your program is running?  Try to find some  
window caption or class that is unique to this program and check for 
that.  


Same thought process for win.show except you need to make sure the 
window is visible.

exec windowinfo can show information about windows.

Reply via email to