[jawsscripts] Re: Close window with SendMessage function?

  • From: "Bryan Garaventa" <bgaraventa11@xxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 13 Aug 2009 14:05:59 -0700

Thanks, the trouble I've been having has to do with a particular toolbar 
menu window.

The toolbar and dropdown menus are all MSAA components, which isn't a 
problem, since you can press escape or alt to close the menus.

The problem is that all of these menus appear to be within a custom parent 
window that remains open even after the MSAA toolbar is closed, thus making 
it impossible to get JAWS to focus on anything else on the main window, even 
when using SetFocus or RoutePCToJAWS to get away from that one annoying 
window. For example, you can press alt to close the toolbar, and when 
checking out the MSAA structure using BX, you can see that all of the menus 
are collapsed. Yet, when you press insert+t to read the current window 
title, you hear Toolbar, since this one window is still open and has no 
apparent means to close it.

I'm not at all certain that SendMessage will do the trick, but I'm not sure 
what else to try. I'll give it a go later this evening though.

Thanks for the parameter values,
Bryan

----- Original Message ----- 
From: "Jim Bauer" <holdsworthfan@xxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Thursday, August 13, 2009 1:46 PM
Subject: [jawsscripts] Re: Close window with SendMessage function?


> sendMessage(hwnd, 0x0112, 0x000F, 0)
> The populated parameters are wm_syscommand and wm_close, respectively.
>>-----Original Message-----
>>From: jawsscripts-bounce@xxxxxxxxxxxxx
>>[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Bryan Garaventa
>>Sent: Tuesday, August 11, 2009 2:13 PM
>>To: jawsscripts@xxxxxxxxxxxxx
>>Subject: [jawsscripts] Close window with SendMessage function?
>>
>>Does anyone know what the correct parameters are for forcing a window to
>>close using the SendMessage function? The window handle is pretty obvious,
>>but I'm not sure what the other constants should be.
>>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
>>
>>
>>__________
>>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
>>
>>
>>This e-mail and any attachments to it are confidential and are intended 
>>solely for use of the individual or entity to whom they are addressed.  If 
>>you have received this e-mail in error, please notify the sender 
>>immediately and then delete it.  If you are not the intended recipient, 
>>you must not keep, use, disclose, copy or distribute this e-mail without 
>>the author's prior permission.  The views expressed in this e-mail message 
>>do not necessarily represent the views of Highmark Inc., its subsidiaries, 
>>or affiliates.
>>__________
>>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
> 

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