[jawsscripts] Re: SendMessage function?

  • From: "Bryan Garaventa" <bgaraventa11@xxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 25 Oct 2007 14:13:53 -0700

Thanks, it's a place for me to start. What I'm trying to do is, figure out if it's possible to pass direct commands into a Java applet window using JAWS, and what, if so, might be possible.


More broadly though, I need to write a script to jump directly into a Java applet from the browser. I've had partial success with this, buy using SetFocus to jump into the Java applet's window using it's window handle (obtained by using FindWindow for the Class).

However, the applet window receives focus, but there doesn't appear to be any way to focus on a particular control within the applet itself, such as a browse tree, so that the applet control can then be used.

For the applet in question, Java Accessibility has already been implemented during the construction, so the applet browse tree control is actually accessible... You can use it like a standard Windows Explorer tree view. There's only one catch though, you have to click the control with the mouse to give it focus before you can use it.

Hence, back to square one, trying to force focus into a specific control within a Java applet window after giving the main Java applet window focus, and round and round and round...

Any ideas?

----- Original Message ----- From: "Doug Lee" <doug.lee@xxxxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Thursday, October 25, 2007 1:16 PM
Subject: [jawsscripts] Re: SendMessage function?


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


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

Other related posts: