[jawsscripts] How do you know if there is a submenu?

  • From: "Donald Marang" <donald.marang@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sat, 22 Aug 2009 01:05:04 -0400

I have very little experience with menu structures.  I would like to be able to 
know if the menu item in focus has a submenu or is in a submenu.  The menus are 
part of the VMware Player and are not standard.  No menu information is 
available in WinDig.  I don't think they fully support MSAA either.
I have two scripts that rotate through the available menus.  One cycles to the 
right and one cycles to the left.  I figure I need to return out of these 
scripts if:
1. The right arrow is pressed when on a menu item that has a submenu.  The 
actual menu shows a triangle at the far right edge of the menu if there is a 
submenu.  Since JAWS turns this into saying "submenu" it must be aware of this 
condition.  Does anyone know the function or event where this happens?
2.  The left arrow is pressed when already in a submenu.  There are only one 
level of submenus in this application.  Therefore this condition exists anytime 
pressing the left arrow while in any submenu.  The desired action would be to 
exit the script and let the key pass through to the application.  Is this as 
simple as a 
GetWindowHierarchyY (hMain) call?  The FSDN says the parameter is the handle of 
the starting window.  Would this be the top application window and the current 
window the end point or the other way around?


The scripts I have so far with these partial functions there but disabled are 
at:
http://mysite.verizon.net/marangs/VMware.html

Don Marang


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

  • » [jawsscripts] How do you know if there is a submenu? - Donald Marang