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. 

Reply via email to