[jawsscripts] Re: Key repeating

  • From: "Snowman" <snowman@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sun, 17 Dec 2017 14:36:08 -0600

yes,  that should do it,but what I find curious is why does it think keys 
are buffered up.  It seems like the system can not gobble them up as fast as 
you can strike them, and that should not be the case.

Usually, the problem is that, a single press is causing some expensive 
operation to run.  So, Each key press is causing a lot of processing.

the way I do this, is to only have the script accumulate counts, abut 
nothing else, except to schedule a function to actually do the work later. 
If the next key is pressed before the function actually runs, then cancel 
the function, and start over.

The way you do that is to have the script schedule it and put the task id 
into a global variable.  And, have the function that does the bulk of the 
work set that global back to 0 when it runs.  So, your script can look at 
that global and, if it is not zero, it can unSchedule (task_id), to take it 
back out of the queue.
So, what happens is, the script runs with each key press, increments the 
counter, and check to see if the function is already scheduled,  UnSchedule 
it if it is.  Then, schedules the function again.

The function checks the accumulated counts, and decides what actio to take 
based on that.  When complete, it clears the counts, and the task_id back to 
0.
This will work or else.


+--------------------------------------------------------------------------+
Listen to The Snowman on MushroomFM.com, Saturday evenings, 8PM Eastern 
time.
60's and 70's tunes, and gently conservative talk.

----- Original Message ----- 
From: "Steve Spamer" <stevespamer68@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Sunday, December 17, 2017 6:03 AM
Subject: [jawsscripts] Key repeating


Ok, I think Iâ?Tve found what does the trick, but key repeating sounded more 
logical.
If IsKeyWaiting () Then
    Return
Else
Run function
EndIf
Steve.
Follow me on Twitter: @stevesax123
Visit the samplitude Access website. Jaws scripts for pro recording with 
Samplitude in Windows: www.samplitudeaccess.org.uk
__________�

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: