Hi:
This capability already exists. Try out the jaws key plus the f3 key. The
first time one enters this command it asks what you want to search for.
Then it takes that word and searches for it on the page and jumps to it. press
it again and the search continues and finds the next occurrence on the page.
I haven't gone searching for how this in coded, but it probably is in one of
the main jaws script areas like the default etc.
One thing to be aware of is when coding and selecting keys to use remember you
want to avoid possible keyboard interference. As well that key combination
is a pretty hard one to use if you plan on using it lots. In a phone directory
program that my company has I coded up searching for specific row information
like phone number, or last name etc and ended up using the layering keyboard
commands. E.g. in the phone directory application jaws code I use the ` key as
my layering keyboard command so I hit it first, and then I issue the letter p
for phone number and it searches for the phone number row and slows down the
speech and reads the phone number and then returns the speed back to what I
normally use. So one can hear the phone number and remember it. if I issue the
` command followed by say the letter l it reads of the person's last name, or `
plus shift letter c give me the cellular phone number.
Anyways, good luck with you coding.
Have a good day.
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of HICKS, Steven
Sent: Wednesday, June 20, 2018 7:16 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Scripting IfSameKey
Hi friends,
I Am trying to write a script that is assigned to alt+ctrl+shift+n.
First press will search for the word new and if I press the same key
combination twice, it will search for save and next, is this doable do you
thing? My sample script is below, any ideas where I would put the IfSameScript
would be much appreciated.
Script findWordPreferredContactNumber () var string strFindText let strFindText
= "Preferred contact number"
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://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fportal.nhs.net%2Fhelp%2Fjoiningnhsmail&data=02%7C01%7Cshan.noyes%40sasktel.com%7C09c93915cee740d6063a08d5d6b00ea7%7Ccb42ff00c2e141e891e9ca6fdc104885%7C1%7C1%7C636650974003514057&sdata=oQzI6eKfkCw%2Fh2jOxNSDUNGEnE3l0rnTtIaNqgZe5%2FY%3D&reserved=0
__________�
View the list's information and change your settings at
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freelists.org%2Flist%2Fjawsscripts&data=02%7C01%7Cshan.noyes%40sasktel.com%7C09c93915cee740d6063a08d5d6b00ea7%7Ccb42ff00c2e141e891e9ca6fdc104885%7C1%7C1%7C636650974003514057&sdata=B0KnxXYREMhitkJWsTPM7uw0hA8hVag24l%2FBD82IJ3U%3D&reserved=0
NOTICE: This confidential e-mail message is only for the intended recipients.
If you are not the intended recipient, be advised that disclosing, copying,
distributing, or any other use of this message, is strictly prohibited. In such
case, please destroy this message and notify the sender.
__________�
View the list's information and change your settings at
//www.freelists.org/list/jawsscripts