Me either! I followed the thread back where a similar postMessage call was suggested. It works perfectly! I had previously had a function that literally attempted five different ways to close the app and still failed occasionally. I will repeat the call here: postMessage(ghVCAMain, 0x10, 0, 0) ; 0x10 is WM_Close Don Marang ----- Original Message ----- From: "Bryan Garaventa" <bgaraventa11@xxxxxxxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Thursday, August 13, 2009 9:46 PM Subject: [jawsscripts] Re: Close window with SendMessage function? > That is sort of weird... I was able to close an app's main window by using > SendMessage(GetAppMainWindow(GetFocus()), 0x10, 0, 0) > I'm not sure what could be happening. > > ----- Original Message ----- > From: "Donald Marang" <donald.marang@xxxxxxxxx> > To: <jawsscripts@xxxxxxxxxxxxx> > Sent: Thursday, August 13, 2009 6:20 PM > Subject: [jawsscripts] Re: Close window with SendMessage function? > > >>I did see this function in that list. However, functions that I have >> written and merged with default.jss also show up in this list. I also >> have >> several tools added to my JAWS installation. I was wondering if I would >> require other users to have certain tools installed if I distribute any >> scripts. So far, it is not closing any windows or applications and >> always >> returns 0. >> >> Don Marang >> >> >> ----- Original Message ----- >> From: "Bryan Garaventa" <bgaraventa11@xxxxxxxxxxxxxx> >> To: <jawsscripts@xxxxxxxxxxxxx> >> Sent: Thursday, August 13, 2009 6:42 PM >> Subject: [jawsscripts] Re: Close window with SendMessage function? >> >> >>> Nope, you should see SendMessage in your JAWS functions list, as well as >>> PostMessage, which provides limited access to the API through JAWS. >>> >>> ----- Original Message ----- >>> From: "Donald Marang" <donald.marang@xxxxxxxxx> >>> To: <jawsscripts@xxxxxxxxxxxxx> >>> Sent: Thursday, August 13, 2009 3:28 PM >>> Subject: [jawsscripts] Re: Close window with SendMessage function? >>> >>> >>>> Is the SendMessage function a built-in JAWS function or is it part of >>>> another package, such as HomerKit? Do you need to load or provide any >>>> other >>>> commands first such as an Use statement? >>>> >>>> Don Marang >>>> >>>> >>>> ----- Original Message ----- >>>> From: "Jim Bauer" <holdsworthfan@xxxxxx> >>>> To: <jawsscripts@xxxxxxxxxxxxx> >>>> Sent: Thursday, August 13, 2009 4: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 >>>> >>> >>> __________ >>> 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 > __________ 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