Bruce wrote:
> Do you display the results of win.getfocus?  This is the one I would
> be saving and restoring.

I just tested again and found that win.getfocus returns always the same
information as I see in Infobar.
The only difference is that getfocus records where the input
cursor is. Because Infobar uses win.handlefrompoint(zTargetX,zTargetY)
I have to place the ordinary mouse pointer over the input box where
the input cursor is; then I get exactly the same handle as getfocus.

Test:
Make a hotkey Win+K, command: win.debug(win.getfocus)
Make the debug window ontop.

Use the hotkey for each of these in turn:
- click a checkbox in metapad options
- place the cursor in the Primary external viewer text box
- place the cursor in the Secondary external viewer text box
All those were on the same tab in the Options dialog.
Each returns a different handle, using win.getfocus.

Use the hotkey for each of these in turn:
- place the cursor in the EnterID box on the Yahoo login page
- then place the cursor in the Password box
- then select some ordinary text (not an input box) on the same page
- open a different webpage in the same window: Google advanced search
- place the cursor in various Google input fields
All those return the same handle as each other, using win.getfocus,

In a browser, the only way I can get a different handle when using
win.getfocus is by opening a second MDI window.
In that second window, all tests return the same handle as each
other, but that is a different handle from in the first MDI window.

Conclusion: using win.getfocus and win.setfocus code will enable
returning to the same child.
In the case of standard Windows windows, that means returning to
the same input box, or even the same checkbox.
In the case of an input box embedded in an html page, it only means
returning to the same large document window, but not to the same
input box.



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

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