--- 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. 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/
