This technique will only work if JFW can recognize the text and you have to
know where the box will appear. This is worth setting up for applications
you use a lot.
You can set the frame for a large part of the screen if the dialog box appears
at
different locations. If you have several different dialog boxes that can
appear,
then put a series of if-then-elif statements to search for each of them.
Also
the
example I sent yesterday should have had the FindString statement in an
IF-Then
so that it didn't read every time something changed in the frame.
This also work nicely with the name of screens to tell you when you've gotten
to a new screen.
Script FindSeveralDialogs ()
SaveCursor ()
JawsCursor ()
; have it search for something unique in the dialog box
If FindString (GetCurrentWindow (), " Text from dialog 1", S_TOP,
S_UNRESTRICTED) then
SayString ("Diaglog box 1 has popped up again")
Ellf FindString (GetCurrentWindow (), " Text from dialog 2", S_TOP,
S_UNRESTRICTED) then
SayString ("Diaglog box 2 has popped up again")
Ellf FindString (GetCurrentWindow (), " Text from dialog 3", S_TOP,
S_UNRESTRICTED) then
SayString ("Diaglog box 3 has popped up again")
; and so on
EndIf
RestoreCursor ()
EndScript
From: "Dennis Brown" <[EMAIL PROTECTED]>
Date: Thu, 11 Mar 1999 13:57:11 -0800
Subject: Re: automatic reading of dialog boxes
Will this work if you haven't got a clue where the dialog box will appear?
Example: I was just installing a new software package, and it gave the text
"Dialog", "Next". So basically, I got the class of the parent window, then
the Current control's name, but none of the text within the parent window!
As you stated, there are a lot of dialog boxes that don't read
automatically, so how do you set a frame around the dialog when you have no
way of knowing where an application is going to place the next dialog it
sends to the screen?
Thanks,
Dennis Brown
[EMAIL PROTECTED]
[EMAIL PROTECTED]
- -----Original Message-----
From: John Goldthwaite <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
John Goldthwaite <[EMAIL PROTECTED]> Voice:(404) 894-0563
Center for Rehabilitation Technology, Georgia Tech Fax: (404) 894-9320
http://www.arch.gatech.edu/crt/
Barrier Free Education
http://www.crt.gatech.edu/bfe/index.html
-
Visit the jfw ml web page: http://jfw.cjb.net