Hi Steve!
I would modify a little bit Doug's script. I often program "more-press"
keystrokes and my experiences are that JAWS needs some extra time to
recognize correctly second, third, or more times presses. So I inserted
a simple 2 ms delay line in the front of the script which gives JAWs to
recognize correctly user's presses.
So the modified script:
Script findWordRequestedBy ()
var
string strFindText
Delay (2)
let strFindText = "Requested by"
if isSameScript()
let strFindText = "Requested for"
endIf
SetJAWSFindText (strFindText)
JAWSTopOfFile ()
; search from top of the file
if (JAWSFindNext ()) then
SayLine()
NextLine()
SayLine()
else
SayMessage (OT_ERROR, "Not Found", "Not Found") endIf
EndScript
2020. 04. 16. 13:27 keltezéssel, HICKS, Steven (Redacted sender
steven.hicks for DMARC) írta:
That is fantastic, thanks so much for your help, I will give it a try and__________�
report back.
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx <jawsscripts-bounce@xxxxxxxxxxxxx> On
Behalf Of Doug Lee
Sent: 15 April 2020 17:03
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Script Advice
Try this - I added three lines in a block:
Script findWordRequestedBy ()
var
string strFindText
let strFindText = "Requested by"
if isSameScript()
let strFindText = "Requested for"
endIf
SetJAWSFindText (strFindText)
JAWSTopOfFile ()
; search from top of the file
if (JAWSFindNext ()) then
SayLine()
NextLine()
SayLine()
else
SayMessage (OT_ERROR, "Not Found", "Not Found") endIf EndScript
On Wed, Apr 15, 2020 at 03:02:59PM +0000, HICKS, Steven wrote:
Hi friends,
Not sure if anyone has the time to advise but I will list my script below
which works really well. It locates a location on the screen which is text
saying Requested By.
Sometimes this field text that I need to find is actually called requested
for rather than requested by.
What I would like to do if possible is search for requested by on one press
of the shortcut key and if I press it twice quickly, it searches for
requested for instead of requested by if that makes any sense?
I Was thinking that I may be able to use the IfSameKey() statement to look
for a double press?
I Could then set the search variable according to if the key is pressed once
or twice?
Script findWordRequestedBy ()
var
string strFindText
let strFindText = "Requested by"
SetJAWSFindText (strFindText)
JAWSTopOfFile ()
; search from top of the file
if (JAWSFindNext ()) then
SayLine()
NextLine()
SayLine()
else
SayMessage (OT_ERROR, "Not Found", "Not Found") endIf EndScript
********************************************************************************************************************
This message may contain confidential information. If you are not the
intended recipient please inform the sender that you have received the
message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take
any action in relation to its contents. To do so is strictly prohibited and
may be unlawful. Thank you for your co-operation.
NHSmail is the secure email and directory service available for all NHS staff
in England and Scotland. NHSmail is approved for exchanging patient data and
other sensitive information with NHSmail and other accredited email services.
For more information and to find out how you can switch,
https://portal.nhs.net/help/joiningnhsmail
__________???
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
--
Doug Lee, Lead Accessibility Architect
Level Access - over 1,000 organizations trust us to help them achieve and
maintain digital accessibility compliance!
mailto:Doug.Lee@xxxxxxxxxxxxxxx http://www.LevelAccess.com "While they were
saying among themselves it cannot be done, it was done." --Helen Keller
__________???
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
********************************************************************************************************************
This message may contain confidential information. If you are not the
intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take
any action in relation to its contents. To do so is strictly prohibited and
may be unlawful. Thank you for your co-operation.
NHSmail is the secure email and directory service available for all NHS staff
in England and Scotland. NHSmail is approved for exchanging patient data and
other sensitive information with NHSmail and other accredited email services.
For more information and to find out how you can switch,
https://portal.nhs.net/help/joiningnhsmail
__________�
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts