[jawsscripts] Re: Control Left Mouse Clicks

  • From: Scott Huey <shuey@xxxxxxxxx>
  • To: "jawsscripts@xxxxxxxxxxxxx" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 17 Oct 2014 12:35:22 +0000

Depending on the application (and if you're using JAWS 15+, of course), it may 
support UIA such that you can gain a control reference for the InvokePattern 
and trigger the desired "normal action" directly, rather than having JAWS 
simulate the hardware mouse click in its standard way. The standard mouse click 
action is usually mapped as the default InvokePattern in UIA, I believe. MSAA 
provides accDoDefaultAction() method for similar utility, if you're dealing 
with something older like a pre-Vista winform app or an older JAWS version. If 
you're dealing with something HTML based, or the control is part of an embedded 
browser object, you can achieve similar results with a synthetic DOM click 
event. 


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jim Snowbarger
Sent: Thursday, October 16, 2014 11:08 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Control Left Mouse Clicks

Hey guys,
I have this script that is doing things in response to key combinations like 
control+LeftArrow.  Part of the processing for that was to do a left 
control+mouse
click at a location.  But, since the control key is still down when the script 
runs, it is also down when jaws does the leftMouseButton call. 
Problem is that the application is sometimes getting a control left click, 
instead of a straight left click.
If I wait for the control key to be released first, the interface is clunky, 
but the problem goes away.
Is there a better way to send a mouse click to that window that might obviate 
the confusion?
I'm thinkin of a SendMessage or PostMessage call.  But, I don't know where to 
find what message to send.
Thanks heaps for any help you can give.


__________�

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: