Title

Message

Confirm

Want to earn a free ClipboardFusion Pro license? We're looking for ClipboardFusion translators!
<< DiscussionsReply

Auto-save & rename images copied to clipboard

Frank99's profile on WallpaperFusion.com
When I create a screenshot with the "Print Screen" button, a ClipboardFusion notification window pops up, and I can right-click on it to save the image. Is there any way to automatically save all.PNG files and/or all image files that appear on my clipboard to my Downloads folder? Also, is there any way to automatically rename them or to have CF prompt me for the name I would like?
Oct 10, 2019  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
In the repository there's a macro called "Save Copied Image to Disk" that will do this. You can edit the folder path on line 11, and then run it from a Trigger rule that uses the "Clipboard Changed" Trigger Event.

Hope that helps!
Oct 10, 2019  • #2
Frank99's profile on WallpaperFusion.com
It works, but now when I paste text, it gives me a message box "the clipboard does not contain a picture". Can you give me a version without any message boxes? I tried to fix it myself but was not able to to get one that verified properly.
Oct 11, 2019 (modified Oct 11, 2019)  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
If you comment out lines 22, 23, and 24, so they look like this:

Code


That should do the trick
Oct 11, 2019 (modified Oct 11, 2019)  • #4
Frank99's profile on WallpaperFusion.com
For some reason it's invalid. Please see the attached macro. I just want it with no notifications.
• Attachment [protected]: Save Copied Image to Disk (no notification).cfmacro [9,218 bytes]
Oct 12, 2019  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, can you try this one?
Oct 15, 2019  • #6
Frank99's profile on WallpaperFusion.com
Works, thanks!
Oct 17, 2019  • #7
Frank99's profile on WallpaperFusion.com
A new problem has popped up. Whenever I save cells in Excel, I'm finding that CF is saving a picture in .png format. Any idea why this is happening or how to stop it?
Oct 21, 2019  • #8
Keith Lammers (BFS)'s profile on WallpaperFusion.com
That'll be happening because Excel puts multiple formats on the clipboard, including images. I'll have a look at this macro some time this week to see if I can ignore the images for Excel.
Oct 21, 2019  • #9
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, give this one a try.
Oct 25, 2019  • #10
Frank99's profile on WallpaperFusion.com
Hi, thanks for fixing this macro for me. Can you help me figure out how to set the trigger? For some reason, when this macro is enabled, I cannot copy and paste text! Do I need to have a trigger set up for this, or is there a way to run it all the time? I actually only care about it running when I use the Win 10 printscreen screen/window capture program.
Mar 28, 2020  • #11
Keith Lammers (BFS)'s profile on WallpaperFusion.com
I think I might see what the issue is there. Could you try this updated version of the script?
• Attachment: Save Copied Image to Disk (no notification).cfmacro [10,010 bytes]
Mar 30, 2020  • #12
Frank99's profile on WallpaperFusion.com
I will try, but I still need to know how to set the trigger or how to invoke the macro. What do I do?
Mar 31, 2020  • #13
Keith Lammers (BFS)'s profile on WallpaperFusion.com
There are a couple of options. You could create a Trigger rule like the attached screenshot, or you could open the macro edit window on the Settings > Macros tab and set a key combination on it. You'd press the key combination after copying the image to the clipboard.
Mar 31, 2020  • #14
Frank99's profile on WallpaperFusion.com
I don't see the screenshot. But just FYI, I don't want to press a key combo - I want it to happen automatically every time I do a screen capture. Can you re-post the trigger?
Apr 1, 2020  • #15
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Sorry about that, here it is!
• Attachment: Trigger.png [34,158 bytes]
Trigger.png
Trigger.png
Apr 2, 2020  • #16
Frank99's profile on WallpaperFusion.com
I had to change the trigger setting from 'Trigger Command Received' to 'Clipboard Changed' but otherwise I think it's working. Thanks.
Apr 3, 2020 (modified Apr 3, 2020)  • #17
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Excellent, glad to hear it!
Apr 3, 2020  • #18
Was this helpful?  Login to Vote  Login to Vote
<< DiscussionsReply