[jawsscripts] Re: Need help

  • From: "John Martyn" <johnrobertmartyn@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 16 Oct 2012 21:41:12 -0700

No no... I was saying for a solution to the problem. I know what those do. I 
should have phrased it better. I meant in the application he is trying to 
script.
Sorry for the confusion.
John Martyn

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jitendra
Sent: Tuesday, October 16, 2012 8:27 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Need help

 
GetWindowType returns the type of the window, (edit, static text, checkbox, 
radio button) etc.
and GetObjectName returns: If the Pc Cursor is active, the name of the 
objectwith focus is returned. Otherwise, the name of the object at the position 
of the active cursor is returned. The value is returned as a string.
    John Martyn wrote: What does GetobjectName return? Also GetWindowType?John 
-----Original Message----- From:
jawsscripts-bounce@xxxxxxxxxxxxx[1]
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx[2]] On Behalf Of Dang Manh Cuong
Sent: Tuesday, October 16, 2012 12:42 AM To: jawsscripts@xxxxxxxxxxxxx[3]
Subject: [jawsscripts] Re: Need help 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.
Jawsjust read: radio button, checkbox. However, I can get the text from 
thesecontrol 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>[4] To:
<jawsscripts@xxxxxxxxxxxxx>[5] 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>[6] To: <jawsscripts@xxxxxxxxxxxxx>[7] 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 
thingyour 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>[8]
To: <jawsscripts@xxxxxxxxxxxxx>[9] 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 
pleasehelp 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>[10] To: <jawsscripts@xxxxxxxxxxxxx>[11] 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 cursoris 
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 tocreate 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[12] Yahoo! ID: manhcuong0312 
Skype name: dangmanhcuong facebook:
http://facebook.com/dangmanhcuong[13] Blog:
http://vi.netlog.com/Cuong_littlecat[14] Website:
http://ngoisaodanduong.com[15http://www.saomaicenter.org[16] Projec-Website:
http://dangmanhcuong.googlecode.com[17] __________ÃÂÂ View the list's 
information and change your settings at 
http://www.freelists.org/list/jawsscripts[18] __________ÃÂÂ View the list's 
information and change your settings at 
http://www.freelists.org/list/jawsscripts[19] ________________ Dang Manh Cuong 
HCMC University of Pedagogy: The Psychology and education Mobile: +84
902-572-300 E-mail: dangmanhcuong@xxxxxxxxx[20] Yahoo! ID: manhcuong0312 Skype 
name: dangmanhcuong facebook: __________ÃÂÂ View the list's information and 
change your settings at http://www.freelists.org/list/jawsscripts[21] 
__________ÃÂÂ View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts[22] __________ View the list's 
information and change your settings at 
http://www.freelists.org/list/jawsscripts[23] __________ View the list's 
information and change your settings at 
http://www.freelists.org/list/jawsscripts[24] ________________ Dang Manh Cuong 
HCMC University of Pedagogy: The Psychology and education Mobile: +84
902-572-300 E-mail: dangmanhcuong@xxxxxxxxx[25] Yahoo! ID: manhcuong0312 Skype 
name: dangmanhcuong facebook: __________ View the list's information and change 
your settings at http://www.freelists.org/list/jawsscripts[26]
__________  View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts[27] 


--- Links ---
   1 mailto:jawsscripts-bounce@xxxxxxxxxxxxx
   2 mailto:jawsscripts-bounce@xxxxxxxxxxxxx
   3 mailto:jawsscripts@xxxxxxxxxxxxx
   4 mailto:gch@xxxxxxxxxxxxxxxx
   5 mailto:jawsscripts@xxxxxxxxxxxxx
   6 mailto:ahart@xxxxxxxxxxxxx
   7 mailto:jawsscripts@xxxxxxxxxxxxx
   8 mailto:dangmanhcuong@xxxxxxxxx
   9 mailto:jawsscripts@xxxxxxxxxxxxx
  10 mailto:Jitendrakumar@xxxxxxxxxxxxxx
  11 mailto:jawsscripts@xxxxxxxxxxxxx
  12 mailto:dangmanhcuong@xxxxxxxxx
  13 http://facebook.com/dangmanhcuong
  14 http://vi.netlog.com/Cuong_littlecat
  15 http://ngoisaodanduong.com
  16 http://www.saomaicenter.org
  17 http://dangmanhcuong.googlecode.com
  18 http://www.freelists.org/list/jawsscripts
  19 http://www.freelists.org/list/jawsscripts
  20 mailto:dangmanhcuong@xxxxxxxxx
  21 http://www.freelists.org/list/jawsscripts
  22 http://www.freelists.org/list/jawsscripts
  23 http://www.freelists.org/list/jawsscripts
  24 http://www.freelists.org/list/jawsscripts
  25 mailto:dangmanhcuong@xxxxxxxxx
  26 http://www.freelists.org/list/jawsscripts
  27 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

Other related posts: