<< DiscussionsReply

Copy/Paste 1 button toggle macro

Avatar from Gravatar.com
Amrit Chana69208
1 discussion post
Is there a way to write a macro that copies selected text if the clipboard is empty, then pastes it with a second press and clears the clipboard afterwards? I tried doing an if statement and was unsuccessful.

Any help would be greatly appreciated!
May 1, 2020  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Could you give the attached macro a try? Note that it will copy the selected text if the clipboard is empty, or if it contains something other than text. So if you copy an image, then run this macro on some text, the image will be cleared from the clipboard and the clipboard will now contain the text.

Hope that helps!
• Attachment: Copy_Paste Text and Clear Clipboard.cfmacro [9,154 bytes]
May 6, 2020  • #2
Was this helpful?    
<< DiscussionsReply