[jawsscripts] Re: GetTextInFrame

  • From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 8 Jan 2010 13:57:09 +1100

hi Gian.

I can probably speak somewhat into this one, but I just haven't been able to
make the time to do it properly! never enough time!

but, in very basic untested form, which I realize is not how you've asked
for it, wouldn't you just wanna do something like:
define CrateName as a local or global string variable, let's say local for
sake of argument near the beginning of your script, after the term
var
to denote variable list, (though in all standard protocol you should really
probably call it,
var
string sCrateName

; (the preceeding lower case s, indicating that it's a string  variable,
; wouldn't you then just do something like:
let sCrateName = GetTextInFrame ("MyFrameName")
if StringContains (sCrateName, "TextToWatchFor") then
; do whatever you need.
EndIf

something like that?

however what I'm not sure about here is, and what I do keep insisting you
reeally need to work on getting down too if your gunna work with frames, is
to insure that their validation criteria is accurate.  i.e. that their
WindowTitle, or Class parameter, far more often the former than the latter
is problematic in my experience,
is not breaking the frame from working.

gotta run. see how you go with this so far.



----- Original Message ----- 
From: "GianniP46" <giannip46@xxxxxxxxxxxxx>
To: "JawsScriptsList" <JawsScripts@xxxxxxxxxxxxx>
Sent: Tuesday, January 05, 2010 2:57 PM
Subject: [jawsscripts] GetTextInFrame


> Hi all,
> Can someone give me some sample code to get the text that is in a frame
that is already defined and have that text assigned to a string variable
called CrateName.
> I am trying to check a frame to see if it contains certain text.  If it
does, then I need to do something in particular.
> Thanks!
>
>
> Gian Pedulla
> GianniP46@xxxxxxxxxxxxx
>
> LETS! GO! METS!
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: