Jeff,

Don't panic Jeff <smile>. You can do that. I'm talking about the ability to select a range. Only a subset of the IE DOM is full Automation and the selection stuff isn't in there.

Doug

Jeff Bishop wrote:
Doug,
This is a bit concerning. Do you mean that you can't get at a domnode object and evaluate the content of that object (am I on a link, checkbox, edit box, select box, radio button, push button, etc, etc)? Can you further explain the limitation here? Jeff
    ----- Original Message -----
    *From:* Doug Geoffray <mailto:[EMAIL PROTECTED]>
    *To:* [email protected] <mailto:[email protected]>
    *Sent:* Friday, August 08, 2008 9:56 AM
    *Subject:* Re: State of drag and drop

    Jamal,

    Humm, the good news is you can do what I said.  The bad news is
    you can't do it in VBScript.  The problem is not all of the IE DOM
    is COM Automation.  The part required to do this is outside of
    Automation.  So you would need a language that handles COM and not
    just COM Automation.  So this would require something like C++ for
    example.  Once things settle down we may take this one.

    Doug

    Jamal Mazrui wrote:
    Thanks for that code.

    I am particularly interested in browse mode selection.  I do not know how
    to do what you are suggesting with the DOM, am not aware of a GW example,
    and would appreciate one.

    Jamal

    --Original Message--
    Fri, 8 Aug 2008, Doug Geoffray wrote:

    Date: Fri, 08 Aug 2008 11:06:00 -0400
    From: Doug Geoffray <[EMAIL PROTECTED]>
    Reply-To: [email protected]
    To: [email protected]
    Subject: Re: State of drag and drop

    Jamal,

    I'll let you dream up the UI to get the starting point and the ending
    point in the script as this easy.  Once you have to start and end point
    just do:

    mouse.position = startingpoint
    mouse.buttondown mbleft
    mouse.position = endingpoint
    mouse.buttonup mbleft

    The text is now selected.

    So I would consider that very easy.  As for browse mode, as you know,
    there isn't a way to simulate selection and this will be resolved post
    7.0.  But you could do better anyway by selecting the actual content in
    the IE window retaining all formatting etc. by bypassing browse mode. In
    other words, you can get the starting line in browse mode and tie that
    to the IE DOM, get the ending line and tie that to the IE DOM and select
    everything in between.  Again, if this were copied to the clipboard by
    the user then they would have the full HTML content that could be pasted.

    Doug


    Jamal Mazrui wrote:
    What might be the script code to easily simulate this?  Would it work in
    browse mode as well?

    Jamal
    On Fri, 8 Aug 2008, Doug Geoffray wrote:


    Date: Fri, 08 Aug 2008 09:04:25 -0400
    From: Doug Geoffray <[EMAIL PROTECTED]>
    Reply-To: [email protected]
    To: [email protected]
    Subject: Re: State of drag and drop

    Jamal,

    No, there is currently no way to know.  But of course this entire
    functionality can easily be simulated with a simple script.  In fact,
    had we had scripting first this feature probably would have been done
    with a script instead of within Window-Eyes.

    Doug

    Jamal Mazrui wrote:

    Via the API, how can a script determine the state of the Window-Eyes drag
    and drop feature?  As you know, when this hotkey is pressed the first
    time, it says "Mark."  A second time presents a dialog with Drop and Mark
    buttons, the default being Drop.  Can a script know the current state
    (whether a regular mouse drag and drop or a browse mode one)?

    Jamal



    --
    Doug Geoffray
    GW Micro, Inc.
    Voice 260-489-3671
    Fax 260-489-2608
    http://www.gwmicro.com


    --
    Doug Geoffray
    GW Micro, Inc.
    Voice 260-489-3671
    Fax 260-489-2608
    http://www.gwmicro.com




-- Doug Geoffray
    GW Micro, Inc.
    Voice 260-489-3671
    Fax 260-489-2608
    http://www.gwmicro.com


--
Doug Geoffray
GW Micro, Inc.
Voice 260-489-3671
Fax 260-489-2608
http://www.gwmicro.com

Reply via email to