--- In [email protected], "Ed Bronson" <edb...@...> wrote:
>
> I have a script assigned to a mouse button that will start Directory
> Opus or activate it if it is already running. At least, that's what
> I'm trying to do. The script will start the program if it isn't
> already running, but if it is running, all I get is the taskbar icon
> flashing. The window isn't brought to the front. Here is the script:
> 
> if(anywindow("c=dopus.lister")) do
> window.show("c=dopus.lister")
> else
> do("C:\\Program Files\\GPSoftware\\Directory Opus\\dopusrt.exe", "/cmd
> Prefs LAYOUT=start")
> endif
> quit
> 
> What am I doing wrong? I know the class name is correct. I can't use
> caption as that changes based on the folder DirOpus is currently in.

You may have to get the windows toy Tweakui from MS site and set
"allow other programs to steal focus" to yes.  (There may be other
ways to do it other than tweakui.

If assigning the command to a button allows it to work, then that
would be good evidence that this is the problem (because assigning to
button means you are allowing PowerPro to control focus since you
click on button, activating PowerPro).


>


Reply via email to