[jawsscripts] Re: Faking the applications key

  • From: Jim Bauer <holdsworthfan@xxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Fri, 12 Jan 2018 16:49:01 -0600

Have you tried posting WM_CONTEXTMENU to your window(s)?

const    WM_CONTEXTMENU = 0x007B
;Given that HWND = your desired control...
postMessage(hwnd, WM_CONTEXTMENU, hwnd, -1)

The WParam is The handle of the window receiving the message (or a child); the 
LParam is a long of cursor coordinates, with X in the low word and Y in the 
high word. If WM_CONTEXTMENU is generated by key press, LParam is -1.

HTH

On 1/12/2018 1:55 PM, Tim Burgess wrote:

Hi,
 

I frequently run Jaws on a MacBook Pro, which has no applications key. I can
obviously get around this problem by plugging in an external keyboard, but
it keeps occurring to me that there must be a way of faking the scan code. I
have a couple of applications that have functionality bound to the
applications key that isn't supported when shift+F10 is used, so this isn't
just an academic enquiry.

 

Has anybody ever had any success doing this? I've tried the obvious TypeKey
and {ApplicationsKey} approaches within a script and I'm pretty sure I've
tried SendMessage and PostMessage approaches, so I've either goofed or I'm
missing the trick of it.

 

Any and all ideas gratefully received.

 

Best wishes.

 

Tim Burgess

 



__________�

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


__________�

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

Other related posts: