Well, that's...interesting.
Here's my test script. I have this in a command list item.
command -> win.debug("starting")
More commands ->
wait.until (visiblewindow("*Notepad"))
win.setfocus(win.handle("*Notepad"))
*Keys {to "*Notepad"} hi there
win.debug("here")
This sends the starting message to the debug window, then waits until I open
notepad before calling the setfocus and then writing 'here' to the debug
window. If I have notepad in the background, it comes to the foreground.
Then " Hi there" appears in notepad.
I found that while trying to duplicate your problems that if I used
'anywindow' instead of 'visiblewindow', it wouldn't wait for notepad to
open, although it would be fine if notepad was already open. Try changing
to visible instead of anywindow.
Note : I was experiencing strange problems with focus with the Keys command
until I added the {to "*Notepad"} piece.
Paul
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Tom Hall
Sent: Tuesday, August 08, 2006 12:39 PM
To: [email protected]
Subject: RE: [power-pro] I must be blind...
At 12:06 PM 8/8/2006 -0400, Gardner, Paul G. wrote:
> win.setfocus(win.handle("*welcome to PRTG*"))
This flat-out doesn't work here. Haven't a clue why. Other windows
which were minimized were popping up all over the place. One of the
enter commands even got sent to a Word document I had open at the time.
Tom
[Non-text portions of this message have been removed]
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/