8/3/2023 0 Comments Trello onenoteResult = 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 |