[jawsscripts] Re: Slight differences after reload?

  • From: Jonathan Cohn <jon.c.cohn@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Sun, 10 Dec 2017 09:24:42 -0500

I believe that the WindowDestroyEvent is a response to the application 
requesting a window be destroyed. Creating and destroying windows is a fairly 
expensive process and it might even be that when a window is destroyed if at 
the application or any monitoring application has a object  associated with the 
event Windows might delay application responses until associated threads or 
processes have freed their related objects. Unless you have a object variable 
associated with the window or one of its internal controls you are probably not 
the culprit of the slowdown. I would also expect that sighted  users would 
encounter the pause also.

                Best wishes,

Jonathan Cohn



On Dec 10, 2017, at 7:13 AM, Steve Spamer <stevespamer68@xxxxxxxxx> wrote:

Hi.  I’m trying to refine and optimize some scripts and just wondering if 
there are specific areas where I should concentrate?
I am very happy with how things are going so far, but I’ve noticed one 
thing that is intriguing me.
In one particular window I’m getting a few MS delay before a control is 
spoken.  This is negligible, but if I unload Jaws and reload, the performance 
is instantanious, but it doesn’t last if I exit and reenter.
Now, I’ve run the trace code once sent by Bob, and even those there maybe 
nothing in it, there is one extra entry in the slightly slower running 
functions list.
It’s an extra WindowDestroyedEvent sandwiched between 2 key pressed events 
at the bottom.
I don’t have this function in the code and I can’t see why this would 
affect things, the list of both scenarios is belowe.

When the window is opened and scripts are loaded. 
keypressedevent
keymapchangedevent
shouldinvalidateocrdataonfocuschange
focuschangedeventex
tutormessageevent
windowdestroyedevent
keyboardlanguagechangedevent
keypressedevent
windowdestroyedevent
keypressedevent
keymapchangedevent

When reloading and getting instantanious performance:

keypressedevent
keymapchangedevent
shouldinvalidateocrdataonfocuschange
focuschangedeventex
tutormessageevent
windowdestroyedevent
keyboardlanguagechangedevent
keypressedevent
keypressedevent
keymapchangedevent


Anyway, there must be something going on to show this behaviour, so if anyone 
has any ideas/tips, they would be greatfully accepted. best 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: