[jawsscripts] Re: SendMessage function?

  • From: "Bryan Garaventa" <bgaraventa11@xxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sat, 27 Oct 2007 14:07:02 -0700

Excellent! Thanks, I'll give it a go.

----- Original Message ----- From: "Jamal Mazrui" <empower@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Saturday, October 27, 2007 8:51 AM
Subject: [jawsscripts] Re: SendMessage function?


The archive at
http://www.powerbasic.com/support/downloads/files/win32api.zip
contains include files for the PowerBASIC compiler.  The numeric values
of most Win32 API constants are contained in the file win32api.inc.  To
translate from the hex representation used by PowerBASIC (and Visual
Basic) to the C-like representation used by JAWS, replace the "&h"
prefix with the "0x" prefix.

Note that many SendMessage calls to standard Windows controls have been
wrapped in functions of the Homer Script Library, available at
http://www.EmpowermentZone.com/kitsetup.exe
or for a manual install
http://www.EmpowermentZone.com/kitsetup.zip

For example, below is the ButtonClick function in Homer.jss.  It
essentially sends a mouse click message to the window specified by a
handle, which may be a button or another control.  This may be worth
trying in the Java applet you mentioned if you have not already solved
the problem of setting focus there.  These Homer functions default to the
window with focus if a 0 is passed as a parameter rather than a valid
window handle.

Hope this helps,
Jamal

Int Function ButtonClick(Handle h)
;Activate a button

Var
Int BM_CLICK

If !h Then
Let h = GetFocus()
EndIf

Let BM_CLICK=245
Return SendMessage(h, BM_CLICK, 0, 0)
EndFunction


On Thu, 25 Oct 2007, Bryan Garaventa
wrote:

Date: Thu, 25 Oct 2007 13:04:53 -0700
From: Bryan Garaventa <bgaraventa11@xxxxxxxxxxxxxx>
Reply-To: jawsscripts@xxxxxxxxxxxxx
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] SendMessage function?

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

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