copy/paste only formated text as plain text, but keep pasting anything else

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
onidarbe
Posts: 10
Joined: 18 Feb 2020, 16:32

copy/paste only formated text as plain text, but keep pasting anything else

Post by onidarbe » 19 Jan 2022, 19:21

I tried to find the solution here and on google, but can same to find the solution.

I like to paste only the text from the clipboard without color, size, font, bold, italic, ... but when it if a file-link, picture, or anything that's not just formatted text it should paste it like it is.
So, before I use Clipboard:=clipboard, I need to find out if it is only text with a color, size, font, ....

Thanks


onidarbe
Posts: 10
Joined: 18 Feb 2020, 16:32

Re: copy/paste only formated text as plain text, but keep pasting anything else

Post by onidarbe » 26 Jan 2022, 12:27

Thanks, but with OnClipboardChange %Type% you can't see the difference between a file-link or a (formatted) text :(
So before I past with my mouse button I want to know if the clipboard only has formated text (bold, fond, size, color) which I want ti remove OR it has a link, picture, ... which just need to past as it is.

Post Reply

Return to “Ask for Help (v1)”