Share via

Select several objects in OneNote programmatically

Anonymous
2012-08-30T12:32:33+00:00

Hi all!

Is there any way to select several objects in OneNote programmatically? Can I, for example, via Win32 API or MSAA/UIAutomation select several objects in current OneNote window? (each object is a table cell with its own objectID)

In my case - the section is in read only mode (the section file marked with attribute "read only"). So I can not update the page xml.

I need to raise mouse event in the area of object (table cell), for example. Or something else. For this I need to get the object coordinates.

For example if I create an OneNote link from one page to another page object - the link will be looks like "onenote://J:/....". We can find the "onenote:" protocol handler in regedit. The handler is "C:\Program Files\Microsoft Office 15\Root\Office15\ONENOTE.EXE" /hyperlink "%1".

So If I run onenote.exe with parameter "/hyperlink [the link]" - OneNote will open the page and the object will be selected!

So I want something like this but for several objects. For example to call method of OneNote.exe or DLL library to select page objects.

Thanks.

Microsoft 365 and Office | OneNote | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

7 answers

Sort by: Most helpful
  1. Anonymous
    2012-09-04T08:10:36+00:00

    This is the very useful feature: to protect the Bible text from occasional modifications.

    Because the users of this program are people with poor work experience on computer.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2012-09-04T07:57:40+00:00

    Why is the Bible Notebook locked? (I assume you mean read-only). Can the notebook be read-write?

    Was this answer helpful?

    0 comments No comments