[jawsscripts] Slow braille response when using BrailleAddObjectValue

  • From: Vojtěch Drábek <vojta.drabek@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Wed, 25 Jun 2014 16:45:18 +0200

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

Other related posts: