Jim. may I ask how did you find/know these values equated to these sendMessage functions? ? presumably the 0x is indicating the following bites are base 16 hexadecimal values, is this correct? Again, remember I'm very unknowledgeable, but if this is so, am I correct in divining that each of these commands, must actually consist of two bites? if that's their proper terminology? The WM_SysCommand needing two base 10 values of 1, and 18, and the actual close command, needing the two base 10 values of 0 and 15? is this correct? I haven't done hex conversions for such a long time now! and, is there any value in learning/knowing their values in base 10, and then just translating them to hex on the fly, as they are needed? as presumably this is how they must be entered in the syntax of the sendMessage command structure? And, on a related note, would you say there are many instances in which knowing these sendMessage type commands, are particularly useful in scripting generally? just curious. thanks. geoff c. ----- Original Message ----- From: "Jim Bauer" <holdsworthfan@xxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Friday, August 14, 2009 6:46 AM 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