[jawsscripts] Re: key press sample

  • From: Udo Egner-Walter <udo.egner-walter@xxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Fri, 6 Nov 2020 21:25:21 +0100

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

Other related posts: