"ehathgepiurhe" wrote:
> Looks like a bug in PowerPro (either that or it is just not possible).

It's not a bug in Powerpro.

It seemed more likely that your messages to us were not reporting
everything we would need to know in order to come up with a solution.
For example, you did not mention:
> ... I would normally use a mouse click to do so ...
until your third message. In your previous messages you only
mentioned that pressing Tabs and the i key would do it.

Therefore I downloaded SoftCat myself and had my suggested scripts
working correctly within a few minutes.
Both of the solutions which I suggested (one using Keys and
one using a Mouse move and click) can be made to work just by using
a sufficient wait.

That is something else you forgot to tell us: SoftCat is extremely
slow to appear and complete painting its window after showing its
splash screen. All it needed was a longer wait.

Bruce was right to ask:
B> I see you are tabbing twice and then sending i.  I suspect this
B> means that you are using tab to move the input focus to a different
B> window.  Are you sure the input focus always starts at the same
B> place?
B> What happens if you manually type two tabs then i?

I found that pressing two Tabs did not reliably take the focus to
the correct panel. It might take 5 tabs to get there, depending on
the current layout. Pressing Tab not only switches between the
left and right panels, it takes you through a long series of window
areas including several dropdown lists.
Shift+Tab does go to the correct panel, but only if the focus is
currently in the right hand panel. Then pressing i works.

If you send the keys or mouse click before all its startup procedures
are complete, it will not work of course.
Here, I found a wait of at least 4500 ms is necessary. That will depend
upon the speed of your PC. It is probably also affected by the size
of your SoftCat database.

This worked here:
Main command: c:\pathto\softcat.exe
Note: check *Switch to if active
More commands:
wait until 5000
Keys +{tab}{w1}g

but it is not a good plan. Shift+Tab switches focus to the correct
panel when the program is started. However you might click your
button which has this command while the program is already running
and the focus is already in the left panel, in which case
Shift+Tab will take it to the wrong place.

Therefore it's better to simulate a mouse click instead of keys.
Of course, you have to use the correct relative x and y values
so the click will happen on the word "installed".
You can find the correct x and y numbers by using Exec WindowInfo.

That method does not depend on where the focus is within
SoftCat's window. However it does depend on you keeping the same
layout, i.e. the number of toolbars shown. For example the toolbar
called View Bar moves our target panel to the right and View,
Lists, Layout/Sort Order/Filter moves it downwards.

This worked here, with one of the many possible layouts
Main command: c:\pathto\softcat.exe
More commands:
wait until 5000
win.mouse("re 55 175 lc")

Because of the timing difficulties (which are caused by Softcat
not by PowerPro) and because of other varying factors such as
layout and focus, maybe the best plan is to click "installed"
manually when the program is ready.



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