[jawsscripts] Re: Scripts for OneNote 2010

  • From: "Travis Roth" <travis@xxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 23 Mar 2011 16:24:31 -0500

Hi Tony,

I tried this. However, SayObjectTypeAndText() does not always detect
everything that is on a line. I believe it is accurately reporting the
object at the cursor, but this can make for inconsistent reading.
For example, I imported an email from Outlook. The header information
apparently is in a table format. Reading by line using
SayObjectTypeAndText() to do the speaking, it reads the first object on the
line such as "From" and "Subject". But does not read the remainder of the
line.
I have not found in the MSAA info information that would indicate that focus
is in fact in a table so I do not know how to programmatically tell if a
table is being used. I suspect that when it comes to importing things from
email and the web it may be preferable to read by full lines anyways,
although I admit this is also not perfect in every scenario.

Thanks for the suggestion. Brain storming is welcome.

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Tony Hernandez
Sent: Wednesday, March 23, 2011 3:50 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Scripts for OneNote 2010

Hi Travis. 

Perhaps it would be better to override the scripts that navigate by line
instead, using SayObjectTypeAndText if the control in question has the
focus, etc., and performing the normal script if not. That might eliminate
the double speak and retain the object text in other controls.

Tony Hernandez
http://dutyofman.net/
Let us hear the conclusion of the whole matter: Fear God, and keep His
commandments, for this is the whole duty of man. For God shall bring every
work into judgment, with every secret thing, whether it be good, or whether
it be evil. (Ecclesiastes 12:13-14)

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Travis Roth
Sent: Wednesday, March 23, 2011 4:38 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Scripts for OneNote 2010

Hi,
Has anyone tried to script OneNote 2010?
At a brief glance it seems there is quite a bit of info available via MSAA
objects.
JAWS can also read text in a document, and SayObjectTypeAndText() picks up
alt text for graphics.
The first issue I had was that each time I moved by line in a document, JAWS
read the line twice. It appears that JAWS is using two functions to read the
text, one the default sayLine code? And the second time is caused by
SayObjectTypeAndText() being called.
I overrode SayObjectTypeAndText() to not read when the document class is in
focus, which removes the double reading. But it is hard to say what other
bugs this will introduce - for starters alt text for graphics isn't read.

Before I experiment further I am wondering if anyone else has already looked
at OneNote 2010 and drawn any conclusions?

- Travis Roth


__________o?=

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


__________o?=

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


__________�

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

Other related posts: