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