Hi Travis: Thanks for your response. I did not notice the not in the menusactive condition. That will teach me to use the all punctuation setting I guess. It's always good to get a fresh prospective on the logic though. I should add however that I took that block of code directly from the braille.jss file. I assumed that I should leave it in tact in the brlAddObjectName function. I do not really understand why it was there. I ultimately had to remove that code because none of my subsequent processing was happening. Now the braille output is working as I want it to. I was able to remove the brlAddDialogPageName and other brladdObject functions and do all of what I wanted in the BrlAddObjectName function. My current function is as below. Thanks for helping me through this. int function BrailleAddObjectName (int nSubtypeCode) var handle hWnd, string strNameText, int iFound, string sFormTitle Let hWnd = GetFocus () if nSubtypeCode == WT_DIALOG then let sFormTitle = GetWindowName (GetRealWindow (GetFocus ())) let iFound = StringContains (sFormTitle, " -") if iFound then let sFormTitle = StringLeft (sFormTitle, iFound-1) endif BrailleAddString (sFormTitle,0,0,0) return true elIf nSubtypeCode == WT_EDIT then let strNameText = GetWindowName (hWnd) let iFound = StringContains (strNameText, " -") if iFound then let strNameText = StringLeft (strNameText, iFound-1) endif BrailleAddString ( strNameText,0,0,0) Return TRUE EndIf return false endFunction David Farough Application Accessibility Coordinator/coordonateur de l'accessibilité Information Technology Services Directorate / Direction des services d'information technologiques Public Service Commission / Commission de la fonction publique Email / Courriel: David.Farough@xxxxxxxxxxxxx Tel. / Tél: (613) 992-2779 >>> "Travis Roth" <travis@xxxxxxxxxxxxxx> 06:42 PM Friday, May 14, 2010 >>> Hi David, If I understand your comment you're saying that when the conditional in BrailleAddObjectName() is present the Braille returns to the long title. The conditional currently says: If ! MenusActive () then As I read that it is saying to me that if a menu is not active or open, then do not do special processing. (Note the exclaimation mark.) My guess is its working as designed as I'd expect a menu to not be active when an edit field has focus for example. If a function returns true, then default processing does not occur for that object attribute. If a function returns false then default processing wil also occur, appending to whatever your function has placed on the Braille display. From your code it looks like you found this already, so apologies if I'm stating the obvious. Please let me know if I'm misunderstanding the issue. -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of David Farough Sent: Friday, May 14, 2010 3:32 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Braille How can I shorten the text in window titles? Hi Jim and Travis The problem is not how to shorten the desired string, but how to insure that Jaws puts the modified string on the braille display without also including the original un-modified string. I have been trying to isolate the various brl functions that normally take care of this as Travis suggested, but have been having problems determining how to code the BrlAddObjectName function so that it will provide the names for the various edit fields without also causing the long title for the dialogue to appear as well. As far as I can determine, the BrailleAddObjectDlgText was not the culprit. it was not picking up any text and seemed to fall back to the default processing. I will provide below the functions that I have been working with. if I comment out the conditional statements in the BrailleAddObjectName function, then my shortened title will be displayed as I planned without the longer title being displayed as well. as soon as I remove the comments from the function, the longer title, followed by the shorter English title and then the DLG type for the dialogue and then the name of the particular control will be displayed int function BrailleAddObjectName (int nSubtypeCode) var handle hWnd, string strNameText If ! MenusActive () then Return FALSE EndIf Let hWnd = GetFocus () If nSubtypeCode == WT_EDIT then BrailleAddString ( GetWindowName (hWnd),0,0,0) Return TRUE EndIf Return false endFunction int function BrailleAddObjectContainerName(int nSubtypeCode) BrailleAddString ("",0,0,0) Return TRUE; endFunction int function BrailleAddObjectDlgPageName(int nSubtypeCode) var int iFound, string sFormTitle if nSubtypeCode == WT_DIALOG then let sFormTitle = GetWindowName (GetRealWindow (GetFocus ())) let iFound = StringContains (sFormTitle, " -") if iFound then let sFormTitle = StringLeft (sFormTitle, iFound-1) BrailleAddString (sFormTitle,0,0,0) return true else BrailleAddString (sFormTitle,0,0,0) return true endif return false endif endFunction David Farough Application Accessibility Coordinator/coordonateur de l'accessibilité Information Technology Services Directorate / Direction des services d'information technologiques Public Service Commission / Commission de la fonction publique Email / Courriel: David.Farough@xxxxxxxxxxxxx Tel. / Tél: (613) 992-2779 >>> "Homme, James" <james.homme@xxxxxxxxxxxx> 01:49 PM Friday, May 14, 2010 >>> Hi David, I'm assuming, without knowing how your application works, that the whole string you want is in the title of the window. According to my memory, GetRealWindowName would get you the whole string. Is there anything in the string that you can rely on to tell you when the French starts? If so, you might be able to use one of the functions that find things in strings or string segment functions to extract one part of the string. After you have the right string, what did you want to do with it in Braille? Thanks. __________ View the list's information and change your settings at //www.freelists.org/list/jawsscripts __________ View the list's information and change your settings at //www.freelists.org/list/jawsscripts __________� View the list's information and change your settings at //www.freelists.org/list/jawsscripts