Thanks for all of your advise, but my function still not work. I think I should describe what I want. I have a dialog with 2 radio buttons, and 1 check box, but Jaws does not read it. Jaws just read: radio button, checkbox. However, I can get the text from these control using jaws cursor, invisible coursor, and get its type and text using script utilities. First I thought about using windows class and controlID, but it Control ID always chane, so I did it by the method what I asked you, and it didn't work. Wait for your help Thank you ----- Original Message ----- From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Monday, October 15, 2012 11:16 PM Subject: [jawsscripts] Re: Need help > PS. ooooh, and I reeeally should've caught that lack of argument/parameter > in the top line of the function too! goodness... > I'm veeeery rusty! > > ----- Original Message ----- > From: "Andrew Hart" <ahart@xxxxxxxxxxxxx> > To: <jawsscripts@xxxxxxxxxxxxx> > Sent: Tuesday, October 16, 2012 3:06 AM > Subject: [jawsscripts] Re: Need help > > >> Geoff, >> >> Yes. the two versions of the code are equivalent, although there are >> other errors in the code. The function should probably look something >> like this: >> >> Int Function HandleCustomWindows (Handle hWnd) >> Var >> Handle hFocus, >> Let hFocus = GetFocus () >> If DialogActive () && >> (GetWindowName (hFocus) == MsgCopy || >> GetWindowName (hFocus) == MSGDirectEdit || >> GetWindowName (hFocus) == MSGDoNotWarn) then >> SayWindowTypeAndText (hFocus) >> Return TRUE >> EndIf >> ; now run version in default, i.e. if none of the above conditions are >> true >> Return HandleCustomWindows (hWnd) >> EndFunction >> >> I don't know what the idea of this function really is, so I'm not sure >> if getting the current focus is really the intent or whether the hWnd >> handle passed in is the more appropriate one to use. >> >> The Returns are needed so that other JAWS code that calls this function >> receive expected feedback from the function so they can respond >> correctly. >> >> Cheers, >> Andrew. >> >> On 15/10/2012 11:56 AM, Geoff Chapman wrote: >>> Hi Dang . >>> >>> I'm honestly not an experienced scripter myself, >>> but, until more seasoned people comment, >>> at the very very least, Wouldn't you need to insert your >>>> SayWindowTypeAndText (hFocus) >>> line, after each conditional statement? like this? >>> >>> Int Function HandleCustomWindows () >>> Var >>> Handle hFocus, >>> Let hFocus = GetFocus () >>> If DialogActive () &&GetWindowName (hFocus) == MsgCopy then >>> SayWindowTypeAndText (hFocus) >>> ElIf DialogActive ()&& GetWindowName (hFocus) == MSGDirectEdit then >>> SayWindowTypeAndText (hFocus) >>> ElIf DialogActive () && GetWindowName (hFocus) == MSGDoNotWarn then >>> SayWindowTypeAndText (hFocus) >>> EndIf >>> >>> ; now run version in default, i.e. if none of the above conditions are >>> true. >>> HandleCustomWindows (hWnd) >>> >>>> EndFunction >>> >>> or, if this is the type of thing your meaning to do, could you not also >>> format it, alternatively, like this? >>> >>> Int Function HandleCustomWindows () >>> Var >>> Handle hFocus, >>> Let hFocus = GetFocus () >>> If DialogActive () && >>> (GetWindowName (hFocus) == MsgCopy || >>> GetWindowName (hFocus) == MSGDirectEdit || >>> GetWindowName (hFocus) == MSGDoNotWarn) then >>> SayWindowTypeAndText (hFocus) >>> EndIf >>> >>> ; now run version in default, i.e. if none of the above conditions are >>> true >>> HandleCustomWindows (hWnd) >>> >>>> EndFunction >>> >>> Is this correct seasoned scripters? >>> >>> HTH. >>> Geoff C. >>> >>> >>> ----- Original Message ----- >>> From: "Dang Manh Cuong" <dangmanhcuong@xxxxxxxxx> >>> To: <jawsscripts@xxxxxxxxxxxxx> >>> Sent: Tuesday, October 16, 2012 12:03 AM >>> Subject: [jawsscripts] Re: Need help >>> >>> >>>> Hi listers >>>> I'm try to make Jaws read some control in a dialog in audacity, wich >>>> user >>>> can read by using jaws or invisible cursor. I modified my existing >>>> handleCustomWindow to make it say windowTypeAndText, but it not work. >>>> May >>>> be >>>> I added wrong condition. So please help me. >>>> Here is my function >>>> >>>> Int Function HandleCustomWindows () >>>> Var >>>> Handle hFocus, >>>> Let hFocus = GetFocus () >>>> If DialogActive () >>>> &&GetWindowName (hFocus)==MsgCopy then >>>> ElIf DialogActive ()&& GetWindowName (hFocus)==MSGDirectEdit then >>>> ElIf DialogActive () &&GetWindowName (hFocus)==MSGDoNotWarn then >>>> SayWindowTypeAndText (hFocus) >>>> EndIf >>>> EndFunction >>>> Thanks in advance >>>> ----- Original Message ----- >>>> From: "Jitendra" <Jitendrakumar@xxxxxxxxxxxxxx> >>>> To: <jawsscripts@xxxxxxxxxxxxx> >>>> Sent: Friday, October 05, 2012 4:26 PM >>>> Subject: [jawsscripts] Re: Need help >>>> >>>> >>>>> Your answer is in your question itself, >>>>> the function GetObjectName is responsible to return the name output >>>>> value in the utility mode, so does the other functions. like: >>>>> if the output mode is value, the function would be: GetObjectValue. >>>>> if it is type, it replaces the value. >>>>> Hope this helps, >>>>> I don't know how shall you use in your scripts, but remember: the >>>>> active >>>>> cursor is responsible for results, more you shall know when call this >>>>> function. >>>>> Take care, Jitendra. >>>>> Dang Manh Cuong wrote: >>>>>> Hi listers >>>>>> I still writing script for Audacity to improve my ability of >>>>>> scripting. >>>>>> Now I want to create a function to varify that current focus track is >>>>>> selected or not. >>>>>> Normaly, Audacity users can varify that by pressing insert+tab, and I >>>>>> can >>>>>> varify it using script Utilities with f10 until i Hear Jaws says: >>>>>> name >>>>>> and press f9 to hear the info. However, I don't know what function >>>>>> supported to get this info. Please help me. >>>>>> Using Jaws 13.0 >>>>>> Thanks so much >>>>>> ________________ >>>>>> Dang Manh Cuong >>>>>> HCMC University of Pedagogy: >>>>>> The Psychology and education >>>>>> Mobile: +84 902-572-300 >>>>>> E-mail: dangmanhcuong@xxxxxxxxx >>>>>> Yahoo! ID: manhcuong0312 >>>>>> Skype name: dangmanhcuong >>>>>> facebook: http://facebook.com/dangmanhcuong >>>>>> Blog: http://vi.netlog.com/Cuong_littlecat >>>>>> Website: http://ngoisaodanduong.com >>>>>> http://www.saomaicenter.org >>>>>> Projec-Website: http://dangmanhcuong.googlecode.com >>>>>> __________ÃÂÂ >>>>>> >>>>>> 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 >>>>> >>>> ________________ Dang Manh Cuong HCMC University of Pedagogy: The >>>> Psychology >>>> and education Mobile: +84 902-572-300 E-mail: dangmanhcuong@xxxxxxxxx >>>> Yahoo! >>>> ID: manhcuong0312 Skype name: dangmanhcuong facebook: >>>> >>>> __________ÃÂÂ >>>> >>>> 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 >>> >>> >>> >> >> >> __________ï >> >> 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 > ________________ Dang Manh Cuong HCMC University of Pedagogy: The Psychology and education Mobile: +84 902-572-300 E-mail: dangmanhcuong@xxxxxxxxx Yahoo! ID: manhcuong0312 Skype name: dangmanhcuong facebook: __________ï View the list's information and change your settings at http://www.freelists.org/list/jawsscripts