[jawsscripts] Using DOM to position Virtual cursor

  • From: "John Robichaud" <JRobichaud@xxxxxxxxxxxxxxxx>
  • To: "JawScripts" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 26 Aug 2009 00:26:57 -0400

Does anyone know of a way to force the virtual cursor to move to a position
on an html page that was selected using DOM methods? 
For example the following code will locate the text "Target Text" but how
can you force the virtual cursor to move to it:
        var object oDoc,        object oTopWindow, object oWin, object
oFrames, object oTextRange, string sText
        Let oDoc = ie4GetCurrentDocument ()
        Let oTopWindow = oDoc.parentWindow
        Let oTopWindow = oTopWindow.top
        Let oFrames = oTopWindow.frames
        Let oWin =
ieGetUnrestrictedWindow(oFrames("WorkArea")).document.body  
        Let oTextRange = oWin.createTextRange()
                oTextRange.findText("Target Text")
                        oTextRange.select().focus() 

John Robichaud



__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: