[jawsscripts] Re: Help with a script

Script test ()
  ScheduleFunction ("testing", 3)
EndScript

Void Function testing ()
  SayInteger (IsSameScript () + 1)
EndFunction

  As it stands, this code will speak the number of times you have pressed
the key which calls the test () script, as long as you repeat the key
presses within three tenths of a second of each other.  That delay can be
changed by altering the second parameter in the ScheduleFunction () call,
but the maximum value is the nominal half second timing of the IsSameScript
() function itself., while the minimum value is set by your reaction times.

  You should be able to put conditional code in the testing () function to
call separate scripts or functions.


  hth

Martin

----- Original Message ----- 
From: "D!J!X!" <megamansuperior@xxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Wednesday, October 29, 2008 5:56 AM
Subject: [jawsscripts] Help with a script


> Hello list, Here's my scenario.
>
> I created a script, but I want it to perform something different if that
> script's key is pressed twice in a row. I'm aware of the IsSameScript
> function, however the IsSameScript function performs the original script
> ones before doing whatever I call if the IsSameScript function is true.
> Basically, I want the script to run something if the key is pressed once,
> and something completely different if the key is pressed twice. No matter
> what, when I press the key twice, the second set of instructions is
> performed, but the first set is also performed. I want a way to stop it
> from
> doing so. I've tried if statements, using values returned from the
> IsSameScript function, but no go.  Any ideas???
>
> Thanks, D!J!X!
>
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
>


__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: