At 01:37 PM 8/8/2006 -0400, Gardner, Paul G. wrote:

>  >  "C:\Program Files\PRTG Traffic Grapher\PRTG Traffic Grapher.exe"
>  > win.setfocus(win.handle("*PRTG*"))
>  > wait.until (visiblewindow("*prtg*"))
>  > *Keys {to "*prtg*"} {enter}
>  >  win.setfocus(win.handle("*PRTG*"))
>  > wait.until (visiblewindow("*welcome to PRTG*"))
>  >  *Keys {to "*welcome to PRTG*"} {enter}
>
>  > I suspect some of the commands are redundant, but I'm not going to
>  > remove them as long as the script works... :-)
>
>I'm with you, but one day, when you're feeling like living on the edge, you
>could probably remove the two win.setfocus commands.  In their current
>location, before the waits, they're probably setting focus to nothing. ;)

They obviously have some effect on the operation, because when I 
commented them both out, the program launched BEHIND the window (this 
one), and the keystrokes were not sent to the desired window. My Word 
window's taskbar item started flashing at the same time, but Word 
didn't receive an errant enter command.

What makes it tricky is that the second window receiving the enter 
command always takes a different amount of time to appear, depending 
on god knows what... :-)


Tom 



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