I'm guessing that you are sending these commands from a snippets
menu...
Some apps will change focus when you switch away from that app to a
powerpro snippets menu.
>From mozilla's editbox that you are trying to send text to and using
windows task manager, Alt+{tab} to another window and then Alt+{tab}
back. Can you type in that editbox without having to mouse click to
reestablish focus?
Now, I'm guessing that it doesn't have focus or there is a slight
delay in setting focus.
The commands that I use to call a snippets menu start are something
like:
gActive= WIN.Handle("active")
gFocus= WIN.GetFocus
DO("MENU", "Show snippets", "CenterScreen")
Then each commandline in my snippets menu has as commandline
something like:
.MySendKeys(?*TEXTTOBESENT*)
Finally my MySendKeys.txt script is something like:
WIN.Show(gActive)
WAIT.For(500, gFocus==WIN.GetFocus)
IF(gFocus!=WIN.GetFocus)
WIN.SetFocus(gFocus)
WIN.Keys("{to "++ gActive++ "}"++ arg(1) )
QUIT
The WIN.Show(gActive) is not required for later versions of PowerPro,
but the gFocus is for some apps.
Hopefully I'm on the right track for you,
Ted
--- In [email protected], "JESUS PEREZ DE ARRILUCEA" wrote:
> ...
> I have another challenging question. I have a window (the live
> headers windows for mozilla) with a few controls where I send
> keystrokes. What I want to do is to send keystrokes to a specific
> box in this window.
>
> When I use the keys command, powerpro fails to send the keys to
> uppermost box (I do not know exactly what powerpro does). The
> keystrokes are sent after I have set the target window as active
> and after my cursor has been placed in the box where the
> keystrokes are going to be sent (these last two steps are
> performed correctly by powerpro)
>
> .win.keys({to *Live HTTP Header*}TEXTTOBESENT)
>
>
> What am I doing wrong?
> ...
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/