[jawsscripts] Re: Slow braille response when using BrailleAddObjectValue

  • From: "Mike O'Brien" <mike23432@xxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 30 Jun 2014 13:11:33 -0400

Hi

To get the elapsed time for a script, use the GetTickCount function.  At the 
beginning of the script put something like let StartTime = GetTickCount ().  
Then at the end of the script, put something like let ElapsedTime = 
GetTickCount ()-StartTime.  I hope that your JAWS read the minus sign.  This 
will get you the number of milliseconds between the two occurrences of the 
function.


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Vojtech Drábek
Sent: Monday, June 30, 2014 09:49
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Slow braille response when using 
BrailleAddObjectValue

Hello again,

It turns out that the delay was caused by one delay(1) line in another place in 
the script. However it would still be great to know how much time each function 
takes, so I would very much appreciate any advice about that, like how to 
measure the amount of time of each function in JAWS scripts.

Thanks,
Vojta Drabek


2014-06-25 16:45 GMT+02:00 Vojtěch Drábek <vojta.drabek@xxxxxxxxx>:
> Hi all,
>
> we have a custom script for Total Commander and recently had to change 
> braille display behavior (because JAWS 15 apparently reads all data 
> from MSAA, where for example brackets around folders are missing). I 
> overloaded the (undocumented, as far as I know) function 
> BrailleAddObjectValue to add the highlighted text to the braille 
> display (instead of the default MSAA information):
>
> int function InFileList()
>   return (GetWindowClass(GetFocus()) == "TMyListBox") EndFunction
>
> int Function BrailleAddObjectValue (int iType) if InFileList()
>   BrailleAddString(Getwindowtext(getfocus(), true),0,0,0)
>   Return True
> else
> return BrailleAddObjectValue (iType)
> endIf
> endFunction
>
>
> but some users have reported that the braille display response has
> become slow when quickly moving between files. Is the function
> BrailleAddObjectValue slow by itself, or are the functions I use in it
> (GetWindowText, GetFocus)? Does anybody know?
__________ 

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: