[jawsscripts] Re: GetTextInFrame

  • From: Jerry Posey <jawsscripts@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Fri, 8 Jan 2010 11:54:06 -0600

Couldn't you move the cursor to the frame and do FindColors and limit it to
the frame and when found do a GetColorField of the text? Or is the text
scattered around the frame?
Jerry

On Fri, Jan 8, 2010 at 12:33 AM, GianniP46 <giannip46@xxxxxxxxxxxxx> wrote:

> ok, thanks I got this working now, but I only need text with certain colors
> spoken.  I know how to do this in the frame manager, but can you get this to
> work with the GetTextInFrame Function?
> In other words can you only get text with specific attributes?
>   ----- Original Message -----
>  From: Geoff Chapman
>  To: jawsscripts@xxxxxxxxxxxxx
>  Sent: Thursday, January 07, 2010 9:57 PM
>  Subject: [jawsscripts] Re: GetTextInFrame
>
>  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
>
>
>
>
> ------------------------------------------------------------------------------
>
>
>
>  No virus found in this incoming message.
>  Checked by AVG - www.avg.com
>  Version: 9.0.725 / Virus Database: 270.14.129/2606 - Release Date:
> 01/07/10 14:35:00
>
> __________
>  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: