20

When copying text from OneNote, it is also made available in the clipboard as an image. (Content is saved in the windows clipboard in various different format types) Some applications use the image version when pasting, causing the pasted text to come out as an image.

There are some open support tickets on the Microsoft support pages, but no feature/bug-fix seems to be in the making.

Self-answered question... but better solutions are welcome.

Wouter
  • 1,701

5 Answers5

5

I've worked my way around this by writing the following AutoHotkey script

$^c::
Send ^c ; Do a normal copy to clipboard
sleep 100 ; Wait for the copy to finish
WinGet current_application, ProcessName, A ; Get the name of the current application

; if the application is OneNote, and the copied content is text ...
if ((current_application = "ONENOTE.EXE") && DllCall("IsClipboardFormatAvailable", "uint", 1)) {
    clipboard = %clipboard% ; remove the formatting
}
Return

This script detects the current application, and type of content being copied. If text is being copied from OneNote, it stores the text in the clipboard as plain text, removing the other types, causing a paste in other applications to work as expected.

The advantage of this script over the other solutions out there (that remove the formatting when using Ctrl-V) is that copy-pasting of files/images/formatted text in word, doesn't break down.

Wouter
  • 1,701
5

I found this answer: Ctrl + Shift + V from Meta

It doesn't work in program I was having issues with (Discord) but does seem to work in some applications

Mac equivalents: Shift + Command + Option + V from AskDifferent

jessieloo
  • 161
0

When I copy and pasted to yahoo mail it copied as an image. This worked for me. Open a new message page in gmail and copy to that. Mine copied as text. Then you can copy and paste from there as text.

AMC
  • 1
0

Adding to the suggestion of @Wouter, if you're using OneNote from the Windows Store as a UWP, it won't be running as ONENOTE.EXE, I modified the Autohotkey script as follows:

$^c::
    Send, ^c
    ClipWait, 1
if ErrorLevel
{
    MsgBox, Copying to clipboard failed.
    return
}

WinGet, current_application, ProcessName, A
WinGetTitle, current_window_title, A

if (current_application = "ApplicationFrameHost.exe" && InStr(current_window_title, "OneNote"))
{
    if DllCall("IsClipboardFormatAvailable", "uint", 1)
    {
        clipboard := clipboard  ; Convert to text-only, removing formatting.
        ClipWait, 1
        if ErrorLevel
        {
            MsgBox, Failed to process clipboard data.
        }
    }
}

return

Benedict
  • 121
-1

Onemore addin has option to "copy as text", you can assign it to a hotkey.

Download addin from Github. Open OneNote, in ribbon locate the button "More" --> Settings --> Keyboard shortcuts --> copy as text --> Assign hotkey needed, for example, Ctrl+C works and you can still make default copy by right clicking.