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. I was struggling with the very issue the OP mentioned, but I didn't want to subscribe to something like TextExpander.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |