This project is read-only.
1
Vote

onApp.GetHierarcy Error: Doesn't work in Onenote 2010

description

Windows 10 x32 plateform. Both Onenote 2016 and 2010 are installed.
It works fine in 2016.
In 2010, after finishing pasting/writing codes, onApp error follows up after clicking OK. (copy to clipboard is working.)

file attachments

comments

smsmith0 wrote Jun 10, 2016 at 3:28 PM

The original project NoteHighlight supported OneNote 2010. I changed the GUIDs when I forked it and changed it to work on ON2013 (hence NoteHighlight2013) so it may be possible that the original project and this one can coexist, but I don't know.

I'll look at if it is possible to detect the OneNote version and make the proper call back into ON2010 (which is why this project exists, because ON2013 changed the interface and I forked it to create the same support for 2013). I'd just have to pull back in the few blocks I changed originally.

Just out of curiosity, why do you have both 2010 and 2016 on the same machine? Do you have things that 2010 supports that 2016 does not? I moved to ON2013 but have not yet made the move to ON2016.

fine wrote Jun 10, 2016 at 5:31 PM

I forgot to update what I found, sorry.

I noticed that NoteHighlight will always try to paste to the last opened version of OneNote. For example,
  • open version 2010 first, and then
  • open version 2016
  • Switch back to 2010, call the NoteHighlight window to input something
  • Now we click OK to paste to 2010. The error will occur.
  • The way to avoid it is that always make sure we edit it in the last opened version of OneNote. So if we really want to take notes in 2010, we have to close 2016, and reopen 2010 to do some 'register' stuff.
Is that possible you can let NoteHighlight detect who is his parent window, not to paste to the wrong target?

2010, 2013, 2016 are basically the same. But on my system, 2010's font rendering is clearer and sharper. The scroll bars are old fashioned, so that my mouse driver can handle them. 2010 is faster. For short, 2010 works better for my old system (really really old). If you have no complaints about 2013, 2016 is right for you. 2016 provides even a little more functions, which I can't name them or need them. :-)

fine wrote Jun 10, 2016 at 5:45 PM

I'd like mention the other problem here.

NoteHighlight always indents Python codes with 8 spaces. That is wrong to Python standard. If you don't write Python, then ignore me. This is an old problem of NoteHighlight 2010.