:-). Well, That's great to know then!! Thanks much Steven for the feedback on
that.
So Glad it was helpful.
With kind regards
Geoff C.
----- Original Message -----
From: HICKS, Steven (Redacted sender "steven.hicks" for DMARC)
<dmarc-noreply@xxxxxxxxxxxxx>
Reply-To: <jawsscripts@xxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: 26/02/2020 12:26:55 AM
Subject: [jawsscripts] Re: Script Error
________________________________________________________________________________
That is fantastic, thank you for the explanation.
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Geoff Chapman
Sent: 21 February 2020 12:55
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Script Error
Hi Steven,
Well, I'm certainly no scripting Deva by any stretch of anyone's imagination!
<grin.>
And I thus won't hope to accurately trace your logic to the nth degree here, to
debug what you might be attempting to do with your single vs double press etc,
but, to my admittedly relatively inexperienced eye,
it looks to me as though you, might, be confusing, what I believe is an
inaccurate "IFSameScript" with the builtin function you, might, instead be
looking for?
I.e. the one For running differing logic depending on how many times the user
presses the key?
which is Called,
"IsSameScript ()"?
I.e. notice the second letter, s, in that statement, rather than, f for fox?
And thus, perhaps Jaws is interpreting your perhaps malformed function as an,
if, statement? and thus expecting an EndIf?
This is assuming you aren't attempting to call another user-defined function
you have created, called "SameScript ()", which you haven't told us about?
But, if so, then there is no space between your if, and your SameScript ()
possible user-defined function?
If you, were, trying to utilise the builtin
IsSameScript ()
Function, in an if statement, then I believe it should look like:
if IsSameScript () then ; Logic for when Key is pressed twice
; include whatever logic you need when the ScriptKey is pressed twice.
else ; Key pressed only once
; include what you want to happen when key is pressed only once.
EndIf; IsSame Script condition Check.
Does this help?
BTW, if interested, I found an example of a more complex method of using the
IsSameScript () BuiltIn function,
in the SayCharacter () Script found in the default.jss file.
----- Original Message -----
From: HICKS, Steven (Redacted sender "steven.hicks" for DMARC)
<dmarc-noreply@xxxxxxxxxxxxx>
Reply-To: <jawsscripts@xxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: 21/02/2020 6:35:10 PM
Subject: [jawsscripts] Script Error
________________________________________________________________________________
HI all,
The script below, it keeps saying an if needs to be terminated by an end if but
I can't figure out what is going on, could anyone provide any suggestions
please?
I Just added the ifsamescript statement.
Script findWordCallReferenceSearch ()
var
string strFindText
let strFindText = "111111"
SetJAWSFindText (strFindText)
JAWSTopOfFile ()
; search from top of the file
if (JAWSFindNext ()) then
SayLine()
IfSameScript() then
End If
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
//www.freelists.org/list/jawsscripts
__________�
View the list's information and change your settings at
//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
//www.freelists.org/list/jawsscripts
__________�
View the list's information and change your settings at
//www.freelists.org/list/jawsscripts