[jawsscripts] Re: simple timer/countdown script

  • From: Kaveinthran Pulanthran <kavein2211@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Sun, 8 May 2016 11:06:53 +0800

hi,

thanks for that explanation,
I am having an idea to operate the script like this

1. user press a key and timer started
2. press the same key again, timer stoppes and it will announce the
length of time, for examples 3.4 seconds

for countdown:
1. user press a key, and jaws will prompt for value of hour, seconds,
or minutes
2. let's say user enter 2 minutes and pres enter, jaws will stat counting,
3. user can press key to know the time elapse and remaining, and jaws
will remind before 10 or  15 seconds the countdown will end
4. after it finishes, jaws will play a sound,

this is my rough plan,

thanks

On 5/8/16, Paul Magill <magills@xxxxxxxxxxx> wrote:

Hi,

I'm sure there will be other ways, but you may wish to consider using the
function, ScheduleFunction:

1. In a script, store in a global string, the time that is required. This
would need to be in the same format as that provided by function SysGetTime.
Then, in the same script, ScheduleFunction the function in point 2.

2. create a function that gets the current time from SysGetTime, and
compares it to that stored in the global string with the appropriate
display/response if it matches.  When the match fails, the ELSE statement,
re ScheduleFunttion the same function.

3. The important bits.    The function will need to be in the default file,
so it continues to call itself even when you alt-tab around. This recalling
is fairly reliable, but can fail for reasons I didn't discover.

If it does fail, then you can add to the function in step 2, a step to place
the current GetTickCount in a Global Integer variable.
Then in AutoStartEvent, check if the current GetTickCount differs from that
in the Global Integer by no more than the Tick count  that would elapse
between the ScheduleFunction calls, and if it does, call the function in
step 2.

Note, I used this method years ago when I was testing ScheduleFunction for
another purpose.

Hope this helps.

Regards,
Paul from Australia.

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Kaveinthran
Pulanthran
hi friends,

I am planning to write a personal timer/countdown script,  but no idea where
to start. Can someone throw ideas on this?

thanks
__________

__________�

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


__________�

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

Other related posts: