[jawsscripts] postMessage or SendMessage! was, Close window with SendMessage function?

  • From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 14 Aug 2009 14:10:17 +1000

ok guys, now I'm reeeeally confused!
again forgive the stupid question,

but how come now then, that either
don's function/call, of ;

postMessage(ghVCAMain, 0x10, 0, 0)

or Jim's of,

sendMessage(hwnd, 0x10, 0, 0)

are both presumably valid ways of communicating with the API and presumably
do the same job?

i.e. I can see that the last thre parameters are identical, but, well what
is the difference then, between PostMessage, and SendMessage, for a start.
is there an actual difference?
and secondly, just to clarify, but is don's first parameter, of,

ghVCAMain,
in his version,

just his own customized global version of reference to the window handle of
his own application needs, thus being the same as Jim's, HWnd more general
refference?

just clarifying.

thanks.

geoff c.



To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Friday, August 14, 2009 12:18 PM
Subject: [jawsscripts] Re: Close window with SendMessage function?


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

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