[jawsscripts] Re: Pause versus Delay

  • From: Doug Lee <doug.lee@xxxxxxxxxxxxxxxx>
  • To: Jamal Mazrui <empower@xxxxxxxxx>
  • Date: Sat, 2 Jan 2010 15:55:49 -0500

I never knew exactly what governs the length of a Pause() call, but I
think of it as a Yield function and assume it lets through whatever is
explicitly waiting, or more accurately, gives all other processes a
chance to do what they think is important.  But this is a guess, and
since the length of a Pause() does not seem to be variable for the
most part, I think I may be wrong.

On Sat, Jan 02, 2010 at 10:06:34AM -0500, Jamal Mazrui wrote:
That's helpful -- thanks.  Could explain why the Delay calls were not 
suppressing speech for me.  Regarding Pause, do you think it waits for, 
say, a sertain number of window messages to be processed by the active 
window?

Jamal


On 1/1/2010 5:48 PM, Doug Lee wrote:
>Delay's time can be aborted by a keystroke according to tests I ran
>years ago.  In particular, I seem to recall that typing a key makes
>the current Delay() call return immediately and all future Delay()
>calls do no delaying at all, until the keystroke itself is handled.
>Pause() always seems to pause regardless of whatever else may be going
>on.  I have not messed much if at all with the second parameter of
>Delay().
>
>On Fri, Jan 01, 2010 at 05:34:01PM -0500, Jamal Mazrui wrote:
>I know this has come up before, but I still don't feel I understand when
>to use which of these functions, and when to use the second parameter of
>Delay.  I have noticed that sometimes Pause seems more effective then
>Delay at suppressing undesired speech.  For example, If I temporarily
>disable speech with SpeechOff, type some keystrokes, Delay, then restore
>speech, sometimes I still get undesired speech seemingly no matter how
>long the Delay is, and even if I use True as a second parameter.  In
>this situation, Pause does seem to suppress the undesired speech.
>
>Naturally, I want to minimize time delays with speech off, so I'd like
>to call whichever function is optimal.  Can folks share the best of
>their understanding/experiences on Pause versus Delay?
>
>Jamal
>__________?
>Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
>View the list's information and change your settings at
>//www.freelists.org/list/jawsscripts
>

-- 
Doug Lee, Senior Accessibility Programmer
SSB BART Group - Accessibility-on-Demand
mailto:doug.lee@xxxxxxxxxxxxxxxx  http://www.ssbbartgroup.com
"While they were saying among themselves it cannot be done,
it was done." --Helen Keller
__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts: