[jawsscripts] Re: SendMessage function?

  • From: Doug Lee <doug.lee@xxxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Thu, 25 Oct 2007 16:16:48 -0400

Further input welcome, but here's mine:

The second SendMessage parameter is a constant that is to mean
something to the window you're sending a message to.  There are
standard messages and custom messages, custom messages being
particular to the class of the receiving window.  A lot of standard
message constants appear in winuser.h from the Windows Platform SDK or
a newer resource.  Many, though not all of these begin with "WM_" (for
Window Message I presume).  Custom message constants tend to begin
with prefixes denoting the class of window to which they apply:  EM_
for edit windows, LB_ for listboxes, etc.  Scan winuser.h for comments
containing the word "messages" to find the constants defined there.

The problem with custom windows, though, is that there is, to my
knowledge, no central directory of messages you can send to each
possible window class.  Sometimes, firing off a Google or MSDN search
for "sendMessage" and a few words related to your class of interest,
or maybe even the class name itself, can net some useful results.
Even then though, a lot of results come back with just constant names
and not their numerical values.  Finding the values for the constants
can sometimes take more searches.

On Thu, Oct 25, 2007 at 01:04:53PM -0700, Bryan Garaventa wrote:
Does anyone know where I can get a list or where there is a reference guide 
to use the SendMessage function? This appears to be a Windows command, and 
JAWS documentation about it, simply states that the user should consult a 
programming manual... Whichever that is...

For instance, the following usage will maximize the current application 
window.

Script MaximizeCurrentAppWindow()
var int Rslt

SendMessage (GetAppMainWindow (GetFocus ()), 274, 61488, Rslt)

EndScript



I have no idea how to find the numerical values that cause this to happen 
though, or what exactly they mean.



Does anyone know anything about this capability? Or where I could learn 
more?



Thanks,



Bryan

__________?
View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

-- 
Doug Lee, Access Technology Programmer
SSB BART Group
mailto:doug.lee@xxxxxxxxxxxxxxxx  http://www.ssbbartgroup.com
"While they were saying among themselves it cannot be done,
it was done." --Helen Keller
__________ 
View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: