secvur.blogg.se

Link onenote to todo
Link onenote to todo












link onenote to todo

But while he used a 3rd party subscription app called "Text Expander" to run the script, I wanted a standalone executable.

link onenote to todo

I had posted a few months ago my solution, a variant of the solution the OP himself came up with. I should have paid a Fiverr seller $100 to do it instead. Then I thought, maybe Visual Basic can do that easier, and viola, VB can easily get clipboard data. So after installing Visual Studio, still couldn't figure out how to get clipboard data because I couldn't figure out how to get the references imported. I know C# is used for desktop apps and I had Visual Studio Code on my pc for some reason, but after hours and hours discovered that apparently you basically can't get windows clipboard data using Visual Studio Code because it's cross-platform. I googled around about how to just compile Christian's javascript to an. So instead I wasted much more than that with a day of my time. The story: I first tried Fiverr, and of course nobody wanted to do anything for less than like $50. ' Gives a little message box so user knows it's done, because despite this thing being less than dozen lines long, it takes a couple seconds to execute ' Writes the finished product back to the clipboard Result = result.Replace("onenote:", "(onenote:///") ' The next two Replace function finish things off for the desktop link Result = result.Replace(Environment.NewLine, ")" & Chr(13)) It replaces that with close parenthesis and a carriage return which is the Chr(13) ' This Replace looks for the carriage return which is the demarcation between the onenote weblink and onenote desktop link. Result = Replace(source, "https", "(https", 1) ' Used a variant of Replace function that would replace only the first instance of https since we don't want this touching the second one ' Defines the result variable which will hold the end product ' Gets the onenote link from the clipboard, assuming the onenote string is the last thing copied to clipboardĭim source As String = My.() The code probably needs an error handler in case it's run without the proper onenote link in the clipboard, but I've reached the end of my abilities on this. Finally did it in Visual Basic via Visual Studio, and compiled. exe program I could run with a custom-mapped shortcut (I use quicktextpaste), so that after copying the link from my OneNote page, I would hit my shortcut key combo and the nifty program would run in the background and convert it to markdown.

link onenote to todo

I was struggling with the very issue the OP mentioned, but I didn't want to subscribe to something like TextExpander.














Link onenote to todo