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