[jawsscripts] Script Advice

  • From: "HICKS, Steven" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "steven.hicks" for DMARC)
  • To: "jawsscripts@xxxxxxxxxxxxx" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 15 Apr 2020 15:02:59 +0000

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

Other related posts: