I must have missed something here,  I thought the control ID was a constant.  The 
window handels are dynamic.  That is why you must use the GetWindow() or GetFocus() 
functions to get the window handel.  Maybe someone could put me strait on which 
function to use and when?

When I need to get the control ID I usually use something like this:

GetControlID(GetFocus())

or something like that.

Now if I want a promt to speak when I move to some control ID I might put the logic in 
the FocusChangedEvent() function.  For example,  if the control ID for the last name 
is 123, then somewhere in the focusChangedEvent I would put:

if GetControlID(GetFocus()) == 123 then
SayString("Last name")
endif 


Hope this helps.
Ken



-----Original Message-----
From:   Keith Creasy [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, January 13, 1999 10:35 AM
To:     [EMAIL PROTECTED]
Subject:        Re: Script questions, again.

Hello.

I can only think of one way to do what you are asking without actually
checking and testing for the field label.  Each control has a unique handle,
but this handle may not be the same each time the window is created.  You
could have your JFW script, with the invisible cursor active, go to the
first control and go through each control in the client window assigning
each in a series of variables with the unique window handle.  You could then
refer to each control by it's handle.  You would have to be sure that your
script reset itself each time the window was created though since the
handles value can change from one time to the next.

Maybe there is an easier way, but I don't know of one.

Keith


-----Original Message-----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: JFW List <[EMAIL PROTECTED]>
Date: Wednesday, January 13, 1999 7:17 AM
Subject: Script questions, again.


>
>I asked  this a week or so ago and didn't really get an answer, so I'll
toss
>it out again...
>What do you do to identify a particular field on a screen full of several
>fields, all the same class, and all having different Control Id and Handles
>whenever the screen is present?  For example, if you have a Last Name
field,
>a First name field, and a Address field, and they are all of the Edit
class,
>and the labels are above, to the left, and below the field's contents.
>How do you identify each field in a routine that checks it's id before
>having JFW read it's particular label when tabbing to that field?
>Since JFW won't read the label to the fields, you have to specifically
force
>JFW to read the field's label using the Invisible cursor before announcing
>the field's contents.
>If the field's handle and control id are different every time that screen
is
>present, what do you have JFW look at in order to know which direction to
>have the invisible cursor read that particular field's label?
>At present, I am using a frame around each field's label and contents, and
>having the Tab and Shift+Tab keys move to the new field, then
>ReadFrameAtCursor.  This particular screen has 15 fields, some with their
>labels on top of the field, some to the left, and some to the right.  Is
>there a more efficient means of getting that field label to read before the
>contents of the field?
>What am I missing in the scripting procedure that will assign a specific
>identifier to each field that will stay the same every time that screen is
>loaded?
>
>Is there a script-specific mailing list anywhere, or a specific e-mail
>address to a script guru that I can address my questions to?
>
>Thanks,
>Dennis Brown
>[EMAIL PROTECTED]
>
>
>
>
>-
>Visit the jfw ml web page: http://yoyo.cc.monash.edu.au/~nallan/jfw
>

-
Visit the jfw ml web page: http://yoyo.cc.monash.edu.au/~nallan/jfw

application/ms-tnef

Reply via email to