--- In [email protected], "ehathgepiurhe" 
<[EMAIL PROTECTED]> wrote:
> --- In [email protected], Alan Martin <[EMAIL PROTECTED]> 
> wrote:
> > I just noticed that your latest message also said:
> > 
> > > When I try keys (slow), the program window opens up in the
> > > background and thus the tab_i does not work (not on any 
attempt).
> > > Keys (fast) does exactly the same thing.
> > 
> > One cannot expect a keys command to work on a program which is in
> > the background! That deserves a few more exclamation marks !!!!!
> > 
> > You could try adding a Window Show command to your script which
> > sends keystrokes, to focus the window before sending the keys.
> > 
> > Wait until anywindow("*SoftCAT*")
> > Window.Show("*SoftCAT*")
> > Wait for 250
> > Keys {slow}+{tab}{w1}i
> > ;; or try
> > :: Keys {fast}+{tab}{w1}i
> > 
> > Note: {w1} in a keys command waits for one tenth of a second.
> > 
> > Window Show may also be needed in the mouse clicking alternative 
I 
> suggested:
> > 
> > Wait until anywindow("*SoftCAT*")
> > Window.Show("*SoftCAT*")
> > Wait for 250
> > mouse relative 150 250
> > mouse leftclick
> > 
> > Experiment with various waits as usual
> > and different x y numbers from my rough guess.
> > 
> > "relative" means relative to the top left corner of the main 
parent
> > window, so the same x and y numbers will work no matter where the
> > window is positioned on the screen.
> > 
> > By the way, with the: Wait until anywindow("*SoftCAT*")
> > I wonder if it could as well be: Wait for anywindow("*SoftCAT*")
> > but I'm not sure about that. Maybe an expert can confirm.
> 
> Wait for breaks the commands entirely - it doesn't work on any 
> attempt. I will try the other code you have pasted and will report 
> back.

Tried it - this new code doesn't work either. Like my original code, 
it will not work on the first attempt to open the program, or if you 
try and open it when it has been purged from the cache. Looks like a 
bug in PowerPro (either that or it is just not possible).




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