Ted wrote:
T> IMHO, this is exactly where win.getfocus shines. If a user is
T> highlighting text inside a browser's version of an "Edit text" box,
T> then goes to a menu, then back to the same "Edit text" box.
Yes, I agree that win.getfocus is much better if the
subsequent commands will be Keys or Copy or Paste.
If this is on a bar button, you would need this as the
first command: win.resetfocus
and in more commands: target=win.getfocus.
If the subsequent commands are for resizing or moving
or closing the parent window, or for obtaining info
from the handle, such as Title = window("caption",target)
or obtaining the exename etc, then make the button's
first command: target=win.handle("active")
If the bar button leads to a complicated script, it might
even need:
Command: win.resetfocus
More commands: child=win.getfocus
parent=win.handle("active")
.myscript
or:
Command: win.resetfocus
More commands: .myscript(win.getfocus,win.handle("active"))
then refer to arg(1) and arg(2) in the script.
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/