[jawsscripts] Re: key press sample

  • From: "Bryan Schulz" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "b.schulz" for DMARC)
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 6 Nov 2020 21:44:18 -0600

Hi,

What I found so far is  much faster.
I just threw 15 tab keys into a script block and physically press space to
open the list when focus lands on the list.
Thanks,
Bryan


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx <jawsscripts-bounce@xxxxxxxxxxxxx> On
Behalf Of Udo Egner-Walter
Sent: Friday, November 6, 2020 2:25 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: key press sample

Hi Bryan, 
as fas as I know there's no function in JAWS to press a key and hold it down
until another function releases the key. 

To send a keystroke to the app you can use: 

TypeKey ("Space")

With listbox do you mean a combobox opening a list? 

You can try to use domain specific scripting to solve the problem. Here's an
introduction from Freedom Scientific: 

https://doccenter.freedomscientific.com/doccenter2/doccenter/rs25c51746a0cc/
DomainScripts/02_DomainScripts.htm
<https://doccenter.freedomscientific.com/doccenter2/doccenter/rs25c51746a0cc
/DomainScripts/02_DomainScripts.htm>

You can try to find the control by using the GetDocumentXML () function.You
get a XML file with attributes and values. Search for the right attribute
and value. Then use PerformActionOnElementWithTabAndAttribute () with one of
the following actions: 

Action_setFocus
Action_makeVisible
Action_doDefaultAction
Action_leftMouseClick,
Action_rightMouseClick

So you can for example set the focus and then use TypeKey ("Space"). 
Or you can do a left mouse click at the element. 

Perhaps you have to try different attributes and values or different
actions. 

Hope this helps, good luck 
Udo 



Am 06.11.2020 um 03:49 schrieb Bryan Schulz (Redacted sender "b.schulz"
for DMARC) <dmarc-noreply@xxxxxxxxxxxxx>:

Hi,


On the web app, a list box opens when I hit the space key.

I didn't find spaceKey ().



Would anyone have a sample of:

pressKey,

releaseKey, and

playKey?



How would someone auto open a list box?

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: