Tried that, it doesn't work. John -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Chad Foster Sent: Wednesday, August 26, 2009 8:53 AM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Using DOM to position Virtual cursor Try calling the function RouteVirtualToPc () after you have selected the HTML elements. -Chad On 8/26/09, John Robichaud <JRobichaud@xxxxxxxxxxxxxxxx> wrote: > 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 > > -- Chad Foster Access Technology Solutions Leveling The Playing Field Through Technology http://www.GO-ATS.net __________ 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 __________ 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