Ralf,

The Text object will automatically update the Text.Point priority for the prior and next versions. This makes it very easy to do what you want. But you have to make a copy of the Text object and use it. I'll explain why in a bit. But here is how you would do it:

Set oMonitorPosition = ScreenPoint(27, 559)
Set myText = Text;
' this speaks 1 line up
Speak myText.priorLine(oMonitorPosition).ClipsText
' this speaks 2 lines up
Speak myText.priorLine.ClipsText
' this speaks 3 lines up
Speak myText.priorLine.ClipsText
' and so on...

Notice I only specified the starting point on the first call and from then on I just used the internal Text.Point property which Window-Eyes kept updating for me. The reason you have to have the line:

Set myText = Text

is because if you do all this directly with just Text then you are making a copy of the object to get the priorline and Window-Eyes updates the point but then poof, that instance of the object is gone so you lose the updated point. Making a copy of the Text object first keeps the point property alive.

Hope this helps.

Regards,
Doug




Ralf Kefferpuetz wrote:
Hi all,
Maybe someone of you could point me in the right direction.
I'm using the text.priorLine  to read a line of clips above the
currentweCursor position. This works, as expected great, but I can't figure
out how to go up one line again. I don't understand the .point method to get
the point of the first text.priorLine. Here is a small example:
oMonitorPosition.X = 27
oMonitorPosition.Y = 559
WECursor.Position =  oMonitorPosition
'this speaks the clips in the current line
sText = Text.Line(oMonitorPosition).ClipsText : speak sText ' this speaks the prior line sText = Text.priorLine(oMonitorPosition).ClipsText : speak sText
So, I guess, I have to get the .pointthe from the text.priorLine and set
oMonitorPosition   to these .point values to do successful a further
text.priorLine, but I have no clue how to do this.

Even the smallest hint is more than welcome ;)
Cheers,
Ralf

Ralf Kefferpuetz * Germany * MSN/Live: [email protected] * Aim:
RalfKatEMC * Skype/Yahoo: rkefferpuetz7747
http://blindpodcast.mypodcast.com

-----Original Message-----
From: Aaron Smith [mailto:[email protected]] Sent: Friday, January 22, 2010 2:05 PM
To: [email protected]
Cc: J.J. Meddaugh
Subject: Re: Errors

J.J.,

There's not one single list, because the error could be coming from any
number of places, (VBScript itself, Window-Eyes, other COM objects, etc.).

What you can do, however, is look up the error code to get a better idea of
what's going on. Sometimes just asking Google what the error code means is
enough to give you come context.

I use the Microsoft Exchange Server Error Code Look-up utility from a
command line, 'cause that's how I roll. You can find it at:

http://www.microsoft.com/downloads/details.aspx?FamilyId=BE596899-7BB8-4208-
B7FC-09E02A13696C&displaylang=en

Aaron

On 1/21/2010 11:23 PM, J.J. Meddaugh wrote:
Is there a list somewhere of all of the meanings of errors? I just got one I don't recognize "provider failure" and can't find out what it may mean in context.
Thanks.
J.J. Meddaugh - ATGuys.com
A premier Licensed Code Factory and KNFB Reader distributor

--
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information pertinent to
your situation when submitting a problem report to the GW Micro Technical
Support Team.

Aaron Smith
GW Micro
Phone: 260/489-3671
Fax: 260/489-2608
WWW: http://www.gwmicro.com
FTP: ftp://ftp.gwmicro.com
Technical Support & Web Development

Reply via email to