[jawsscripts] Re: Preventing an MSAA object from triggering

  • From: Chad Foster <chad.foster@xxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Tue, 11 Aug 2009 12:32:34 -0400

I do not have a code example to share, but I used MSAA objects to walk
the hierarchy. As you find menus, store their x/y coordinates and/or
object IDs, and build the activation functions on the fly.

Once you have built the functions while generating your user buffer
content, pressing ENTER on the links will fire the functions. You will
need to then perform a check to see if you need to perform the routine
all over again.


HTH<

On 8/11/09, Bryan Garaventa <bgaraventa11@xxxxxxxxxxxxxx> wrote:
> I had the same situation with the HTML Kit scripts, so used a similare
> method. If you'd like to see the code, you can download the scripts from
> http://gutterstar.net/mbrs/html_kit_scripts.php
> The scripts basically have to parse the contents of each menu call by
> scanning all available options, checking the background and forground colors
> to determine if an item is available or not, then creating a string array
> that can be referenced during arrow navigation. It's a bit clunky, but it's
> the only method that appears to work in this case.
>
>
> ----- Original Message -----
> From: "Marlon Brandão de Sousa" <splyt.lists@xxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Tuesday, August 11, 2009 9:00 AM
> Subject: [jawsscripts] Re: Preventing an MSAA object from triggering
>
>
>> Hello Xad,
>> How you would activate a menu and get its submenus all inside a virtual
>> buffer?
>> I guess that it would be necessary to send a win message to the menu
>> and get the submenus, but I am not sure about how to perform this.
>> A peace of code would be apreciated but if this is not possible them
>> if you can explain breefely how it would work I would apreciate it
>> pretty much.
>> There are some apps I wanted to script that does not currently offer
>> access to their menu bars via alt key and arrows navegation.
>> Implementing a solution via virtual buffer might be a good
>> alternative.
>> Thanks,
>> Marlon
>>
>> 2009/8/11, Bryan Garaventa <bgaraventa11@xxxxxxxxxxxxxx>:
>>> Thanks, I think I've found a way to prevent it by keeping the mouse
>>> cursor
>>> away from the menu when open. It looks like the menu items are only
>>> triggered when the mouse passes over specific items, which is pretty
>>> annoying.
>>>
>>> ----- Original Message -----
>>> From: "Chad Foster" <chad.foster@xxxxxxxxxx>
>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>> Sent: Monday, August 10, 2009 10:18 AM
>>> Subject: [jawsscripts] Re: Preventing an MSAA object from triggering
>>>
>>>
>>>> Don't know of a way to prevent it from opening while using the menu
>>>> itself, but you can virtualize the menus via the User Buffer functions
>>>> and have the menus presented virtually, where you access the submenus
>>>> via link functions.
>>>>
>>>> On 8/10/09, Bryan Garaventa <bgaraventa11@xxxxxxxxxxxxxx> wrote:
>>>>> Does anyone know if this is possible?
>>>>>
>>>>> I've got an MSAA enabled menu within an application. When you arrow
>>>>> down
>>>>> to
>>>>> a submenu, the highlighting of the MSAA menu item causes the submenu to
>>>>> automatically open. This occurs for every submenu option, as well as
>>>>> nested
>>>>> submenu items, all automatically as soon as the item receives focus.
>>>>>
>>>>> So, is it possible to prevent an MSAA object from triggering
>>>>> automatically
>>>>> from a JAWS script? I doubt it, but thought I'd ask anyway just in
>>>>> case.
>>>>>
>>>>> Thanks,
>>>>> Bryan
>>>>>
>>>>> __________
>>>>> 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
>>>
>>>
>>
>>
>> --
>> When you say "I wrote a program that crashed Windows," people just
>> stare at you blankly and say "Hey, I got those with the system, for
>> free."
>> Linus Torvalds
>> __________
>> 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
>
>


-- 
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

Other related posts: