[jawsscripts] Re: FW: FW: Re: How do you get the Firefox DOM forscripting?

  • From: Victor Tsaran <vtsaran@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Sat, 12 Jul 2008 20:49:04 -0700

Guys,
Why not just use INSERT+CTRL+F for the "virtual find" feature? I 
personally find that JAWS works much better with Firefox 3.0 without 
scripts.
Vic

Johnvi Javier wrote:
> Hi Jackie, it works! thanks for the tip, it is simple
> but effective.
> --- Jackie McBride <abletec@xxxxxxxxx> wrote:
> 
>> Bryan, 1st, that worked--w/a bit of tweeking on my
>> part. The
>> confignames.ini file was in the all users folder, as
>> were the firefox
>> scripts. I changed the name, copied the .ini file,
>> as well as the
>> firefox script & keyboard files to my user folder, &
>> gosh, firefox
>> seems to be working a lot better now, including ctrl
>> f. So, I am much
>> much happier!
>>
>> Thanks for the tip! Where did I miss that file? Ugh!
>>
>> On 7/8/08, Bryan Garaventa
>> <bgaraventa11@xxxxxxxxxxxxxx> wrote:
>>> To fix this, just open the file named
>> ConfigNames.ini in your JAWS script
>>> directory.
>>> Within the section: [ConfigNames], add the
>> following line
>>> firefox3.0=firefox
>>>
>>> That should do the trick.
>>> ----- Original Message -----
>>> From: "Jackie McBride" <abletec@xxxxxxxxx>
>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>> Sent: Tuesday, July 08, 2008 2:55 PM
>>> Subject: [jawsscripts] Re: FW: FW: Re: How do you
>> get the Firefox DOM
>>> forscripting?
>>>
>>>
>>>> I'll tell yall what's really weird--in Firefox,
>> the virtual find
>>>> feature doesn't work particularly well. 1 thing
>> they do is use the
>>>> slash key to implement a text search on a page.
>> Jaws, however, uses
>>>> this to locate clickable elements.
>>>>
>>>> So I bring up script manager & write a script to
>> bypass the key & then
>>>> type it--how hard is that? Except--it doesn't
>> work!
>>>> a) Although jaws says the app name is
>> firefox.exe, when script manager
>>>> comes up, the file is named firefox3.0.jss.
>>>> b) Ok, fine, if it wants to be that way, I'll
>> just save it as
>>>> firefox.jss & run it like that, but still no go!
>>>>
>>>> I'd like firefox, if I could get the virtual find
>> feature, which I use
>>>> extensively, to freakin work! Aint assistive
>> technology grand?
>>>> On 7/8/08, Victor Tsaran <vtsaran@xxxxxxxxx>
>> wrote:
>>>>> This will still not work for JAWS scripting
>> language or at least my
>>>>> tests fail. I don't think there is an IDispatch
>> support in Firefox.
>>>>> Regards,
>>>>> V
>>>>>
>>>>>
>>>>> Bryan Garaventa wrote:
>>>>>> Actually, this may be possible after all... It
>> will likely take quite a
>>>>>> bit
>>>>>> of
>>>>>> experimentation, but this code below works in
>> JAWS according to the
>>>>>> directions on the link below... It's a start at
>> any rate.
>>>>>> ; Site for all related info for screen reader
>> developers...
>>>>>> ; http://www.mozilla.org/access/windows/at-apis
>>>>>> ; Global MSAA Object for main Window Content
>>>>>> globals object MSAAWin
>>>>>>
>>>>>> Script tmpScript ()
>>>>>>
>>>>>> Say ("Firefox MSAA test", 0)
>>>>>>
>>>>>> var handle nWin, handle oWin, string findClass,
>>>>>> int cid
>>>>>>
>>>>>> ; Desired window class name.
>>>>>> let FindClass = "MozillaContentWindowClass"
>>>>>>
>>>>>> ; Loop to get the right handle.
>>>>>> let nWin = GetFocus ()
>>>>>> While (oWin != nWin)
>>>>>> if GetWindowClass (nWin) == findClass then
>>>>>> let oWin = nWin
>>>>>> else
>>>>>> let oWin = nWin
>>>>>> let nWin = GetParent (nWin)
>>>>>> endif
>>>>>> EndWhile
>>>>>>
>>>>>> if GetWindowClass (nWin) != findClass then
>>>>>> Say ("Content class not found", 0)
>>>>>> Return
>>>>>> endif
>>>>>> Say ("Found Content window", 0)
>>>>>>
>>>>>> ; Now create the MSAA object for the captured
>> window handle.
>>>>>> if not MSAAWin then
>>>>>> let MSAAWin = GetObjectFromEvent (nWin, 0, 0,
>> cid)
>>>>>> if not MSAAWin then
>>>>>> Say ("The MSAA object could not be created", 0)
>>>>>> Return
>>>>>> endif
>>>>>> Say ("MSAA object created", 0)
>>>>>> endif
>>>>>>
>>>>>> ; Still haven't got past this point...
>>>>>> ; Presumably now I need to get an instance of
>> the ISimpleDOMNode, if
>>>>>> this
>>>>>> is
>>>>>> possible. Perhaps as type variant...
>>>>>> ; If that isn't possible, the MSAA commands
>> should be good for something
>>>>>> at
>>>>>> this point. Hopefully.
>>>>>> ; ...
>>>>>>
>>>>>> EndScript
>>>>>>
>>>>>>
>>>>>> ----- Original Message -----
>>>>>> From: "Jamal Mazrui" <Jamal.Mazrui@xxxxxxx>
>>>>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>>>>> Sent: Tuesday, July 08, 2008 11:58 AM
>>>>>> Subject: [jawsscripts] FW: FW: Re: How do you
>> get the Firefox DOM
>>>>>> forscripting?
>>>>>>
>>>>>>
>>>>>>> -----Forwarded Message-----
>>>>>>> From:
>>>>>>>
> dev-accessibility-bounces+jamal.mazrui=3Dfcc.gov@xxxxxxxxxxxxxxxxx
> [mailto:dev-accessibility-bounces+jamal.mazrui=3Dfcc.gov@xxxxxxxxxxxxxxxx=
>>>>>>> g
>>>>>>> ] On Behalf Of Victor Tsaran
>>>>>>> Sent: Tuesday, July 08, 2008 2:32 PM
>>>>>>> To: dev-accessibility@xxxxxxxxxxxxxxxxx
>>>>>>> Subject: Re: FW: [jawsscripts] Re: How do you
>> get the Firefox DOM
>>>>>>> forscripting?
>>>>>>>
>>>>>>> Jamal,
>>>>>>> The answer is "you don't" or rather "you
>> can't".
>>>>>>> Vic
>>>>>>>
>>>>>>> Jamal Mazrui wrote:
>>>>>>>> If anyone has answers, I'd be glad to forward
>> them to the JAWS
>>>>>>> scripting list.
>>>>>>>> =20
>>>>>>>> Jamal
>>>>>>>> =20
>>>>>>>> -----Forwarded Message-----
>>>>>>>> From: jawsscripts-bounce@xxxxxxxxxxxxx=20
>>>>>>>> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On
>> Behalf Of Bryan Garaventa
>>>>>>>> Sent: Tuesday, July 08, 2008 3:24 AM
>>>>>>>> To: jawsscripts@xxxxxxxxxxxxx
>>>>>>>> Subject: [jawsscripts] Re: How do you get the
>> Firefox DOM for
>>>>>>> scripting?
>>>>>>>> =20
>>>>>>>> I think I understand the mechanics behind the
>> behavior, which relies
>>>>>>> on an MSAA object instead of a traditional
>> DOM.
>>>>>>>> =20
>>>>>>>> I'm not sure how to get a running instance of
>> this though. Would
>>>>>>> getting the current MSAA object at point using
>> the Firefox main window
>>>>>>> handle return this MSAA object?
>>>>>>>> =20
>>>>>>>> Would it then be possible to use the various
>> method calls at=20
>>>>>>>> http://www.mozilla.org/access/architecture
>>>>>>>> =20
>>>>>>>> It isn't clear to me if it's possible to read
>> an ID attribute from any
>>>>>>> of these MSAA object nodes however, which is
>> what I would really need
>>>>>>> to
>>>>>>> scan for. Is this possible within the JAWS
>> scripting environment when
>>>>>>> scanning the Firefox MSAA object tree?
>>>>>>>> =20
>>>>>>>> =20
>>>>>>>> ----- Original Message -----
>>>>>>>> From: "Jackie McBride" <abletec@xxxxxxxxx>
>>>>>>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>>>>>>> Sent: Monday, July 07, 2008 5:12 PM
>>>>>>>> Subject: [jawsscripts] Re: How do you get the
>> Firefox DOM for
>>>>>>> scripting?
>>>>>>>> =20
>>>>>>>> =20
>>>>>>>>> Bryan:
>>>>>>>>>
>>>>>>>>> Check out
>>>>>>>>>
> http://developer.mozilla.org/en/docs/Accessibility:Architecture
>>>>>>>>> & see if it helps, ok?
>>>>>>>>>
>>>>>>>>> On 7/7/08, Bryan Garaventa
>> <bgaraventa11@xxxxxxxxxxxxxx> wrote:
>>>>>>>>>> Is there any JAWS script function that
>> returns a document object for
>>>>>>>>>> Firefox? The IE DOM is easy to get using
>> IEGetCurrentDocument,
>>>>>>>>>> but=20
>>>>>>>>>> nothing appears to work in Firefox for the
>> same purpose.
>>>>>>>>>> __________
>>>>>>>>>> View the list's information and change your
>> settings at=20
>>>>>>>>>> //www.freelists.org/list/jawsscripts
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Change the world--1 deed at a time
>>>>>>>>> Jackie McBride
>>>>>>>>> Check out my homepage at:
>>>>>>>>> www.abletec.serverheaven.net
>>>>>>>>> & please join my fight against breast
>> cancer=20
>>>>>>>>> =
> <http://teamacs.acsevents.org/site/TR?px=3D1790196&pg=3Dpersonal&fr_id=3D=
>>>>>>> 34
>>>>>>>>> 89>
>>>>>>>>> __________
>>>>>>>>> View the list's information and change your
>> settings at=20
>>>>>>>>> //www.freelists.org/list/jawsscripts
>>>>>>>>>
>>>>>>>> =20
>>>>>>>> __________
>>>>>>>> View the list's information and change your
>> settings at=20
>>>>>>>> //www.freelists.org/list/jawsscripts
>>>>>>>> =20
>> _______________________________________________
>>>>>>> dev-accessibility mailing list
>>>>>>> dev-accessibility@xxxxxxxxxxxxxxxxx
>>>>>>>
>> https://lists.mozilla.org/listinfo/dev-accessibility
>>>>>>> __________
>>>>>>> View the list's information and change your
>> settings at
>>>>>>> //www.freelists.org/list/jawsscripts
>>>>>>>
>>>>>> __________
>>>>>> View the list's information and change your
>> settings at
>>>>>> //www.freelists.org/list/jawsscripts
>>>>>>
>>>>>>
>>>>> __________
>>>>> View the list's information and change your
>> settings at
>>>>> //www.freelists.org/list/jawsscripts
>>>>>
>>>>>
>>>>
>>>> --
>>>> Change the world--1 deed at a time
>>>> Jackie McBride
>>>> Check out my homepage at:
>>>> www.abletec.serverheaven.net
>>>> & please join my fight against breast cancer
>>>>
> <http://teamacs.acsevents.org/site/TR?px=1790196&pg=personal&fr_id=3489>
>>>> __________
>>>> View the list's information and change your
>> settings at
>>>> //www.freelists.org/list/jawsscripts
>>>>
>>> __________
>>> View the list's information and change your
>> settings at
>>> //www.freelists.org/list/jawsscripts
>>>
>>>
>>
>> -- 
>> Change the world--1 deed at a time
>> Jackie McBride
>> Check out my homepage at:
>> www.abletec.serverheaven.net
>> & please join my fight against breast cancer
>>
> <http://teamacs.acsevents.org/site/TR?px=1790196&pg=personal&fr_id=3489>
>> __________ 
>> View the list's information and change your settings
>> at 
>> //www.freelists.org/list/jawsscripts
>>
>>
> 
> 
> johnvi
> 
> Love begins at home; love lives in homes, and that is why there is so much 
> suffering and so much unhappiness in the world today... Everybody today seems
> to be in such a terrible rush, anxious for greater developments and greater 
> riches and so on, so that children have very little time for their parents.
> Parents have very little time for each other, and in the home begins the 
> disruption of the peace of the world. 
> 
> other email address johnvi.javier@xxxxxxxxx
> skype address johnvi2
> 
> 
>       
> 
> __________ 
> View the list's information and change your settings at 
> //www.freelists.org/list/jawsscripts
> 
> 

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

Other related posts: