Hello ehathgepiurhe,

e> ... You would have downloaded v2.00 ...

I don't want to uninstall and reinstall an earlier version :)
Please test whether in your version, either of these will work

If(anywindow("Softcat - C:\*"))do
window show "Softcat - C:\*"
quit
endif
c:\pathto\softcat.exe
wait until 5000
win.mouse("re 55 175 lc")

or the same script but replace the last line with
Keys +{tab}{w1}i

Note that the Wait Until must be long enough (maybe even longer
than 5000 msecs if you have a large starting database)
and the x y must be correct for your usual starting layout
__________________________________________________

Notice I have extended the PartTitle parameter which specifies
the target window. Alternatively you could use the =exename
syntax [explained in Help Index "captionlists"] which will work if
you only have one window at a time from SoftCAT.exe

If(anywindow("=Softcat"))do
window show "=Softcat"
etc

Here is the reason for changing that parameter:

e>  ... the program window opens up in the background ...

I think that only happens sometimes.
I had a similar experience here when testing the script.
It SEEMS that the SoftCAT window goes backwards in the
window stack. What actually happens is that another window
comes forward and takes the focus, because it too matches
the CaptionList parameter in our Window.Show command.
Then the keys command doesn't work because the keys are
sent to the wrong window.

In my case, the Maxthon window came to the front. Then I noticed
that Maxthon had "SoftCat" in its title, because it was still
showing the SoftCAT download page. I guess the same thing could
happen if Explorer was showing the SoftCAT program's folder and
you have set Explorer to show the full path in its title.
The same could happen if notepad or your editor is viewing
c:\pathto\SoftCAT\readme.txt
They all match "*softcat*" as a PartTitle parameter.

SoftCat's title is "SoftCAT - C:\pathto\YourDatabase.mdb"
If your database is on drive C: then the PartTitle "SoftCAT - C:\*"
will find only SoftCat's window and not the others.
It only needs an asterisk * at the end, because we started with
the beginning of the title.

So I recommend you use either "=softcat" or "SoftCAT - C:\*"
in *every* command which needs to specify the window.
If your SoftCAT title looks different from what I have shown,
modify the PartTitle accordingly, keeping it long enough to be
unique.



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/
 


Reply via email to