[jawsscripts] Re: Capturing Text From A Frame

  • From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 13 Aug 2009 03:54:03 +1000

sure there is.


GetTextINFrame ("FrameName")


should do it.

(note the quotes around your frameName as per usual.
note, Steven do you know about using control+I, when inside a function,
then tabbing once, and trying to locate certain functions from that big list
box,, by typing multiple letters to have it jump to them if they exist?

like if you do that, then type fast:

gettext

you'll see all the GetText functions that you can pick from etc.


Note, GetTextInRect can also be one that I have found useful,
if you don't wanna bother having to make the frame first etc, but in this
case, you gotta do a bit more manual fiddling regarding manually
interpreting the left, top, right, and bottom coords correctly, of the
rectangle you wanna make as your frame.  I.e. when you define a frame, it
does that good stuff automatically for you. but when you do your own
getTextInRect coords for that function, it's best to check how the Frame has
decided to tweak those coordinates, inside the frames manager etc,
then employ that same strategy in your GetTextInRects.  that's only if you
wanna bother with using that function instead.
there are some slight advantages with this method I reckon over the
GetTextInFrame, method, but, I won't go into them all here now.
hth.
Geoff c.
----- Original Message ----- 
From: "Steven Hicks (HICKSSM)" <Steven.HicksSM@xxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Wednesday, August 12, 2009 11:16 PM
Subject: [jawsscripts] Capturing Text From A Frame


> Hi friends,
> does anyone know if it is possible to capture text from a frame and put it
in to a variable?
> I have a place on the screen where a number appears, if this number goes
above say six, I would like to do something like playt a sound or move the
focus.
>
>
> --------------------------------------------------------------------------
---------------
> The information in this e-mail and any attachments is
> confidential and is intended for the attention and use of the
> named addressee(s).  It  must not be disclosed to any other
> person  without our authority.  If you are not the intended
> recipient, or a person responsible for delivering it to
> the intended recipient or are aware that this e-mail has been
> sent to you in error, you are not authorised to and must not
> disclose, copy, distribute, or retain this message or any part of it.
>
> We sweep all outgoing messages for the presence of computer
> viruses. However, we cannot accept any responsibility for any
> loss or damage to your systems due to viruses or malicious
> code not detected.
>
> The statements and opinions expressed in this message are
> those of the author and do not necessarily reflect those of the
> organisations within the Cornwall & Isles of Scilly Health
> Community.
>
> This email may be disclosed under the Freedom of Information
> Act 2000 or the Environmental Information Regulations 2004.
> --------------------------------------------------------------------------
---------------
>
> __________
> 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: