captain_carrot Posted January 2, 2021 Share Posted January 2, 2021 First of all, a *huge* thanks to Rick for developing this most excellent software! It is fantastic, exceedingly flexible, and provides a truly amazing set of tools to spark creativity. Also thanks to the developers and publishers of the vast array of plugins that takes the base software and makes it even more amazing! That being said, I too was seeking a way to bypass the superfluous (at least to me :) 'Save Configuration' dialog box that surfaces every single time I wish to save a copy of a file in a different format (i.e., use 'Save As'). Rick has stated very clearly that this is not a bug, it is a feature and one that he does not intend to 'correct' despite requests here:https://forums.getpaint.net/topic/31775-can-save-configuration-popup-be-by-passed/ and here:https://forums.getpaint.net/topic/115251-disable-window-save-configuration/. That's fair, paint.NET is his baby and if that's what he prefers then so be it. It was worth it to me, however, to seek an alternative to 'just hit enter twice', since I purely hate RSI. I dusted off AutoHotKey (https://www.autohotkey.com/), a generic Windows-based hotkey scripting program that I used to use to fix the most irritating user interface errors in Lotus Notes, nearly 20 years ago. I was pleased to see that the AHK community and codebase has been flourishing, and the most recent version is fully compatible with Windows 10. After a bit of investigation, I put together the following AHK script that a) waits for the paint.NET 'Save Configuration' window to become active, then b) sends an immediate 'Enter' keypress to dismiss it and save the file using the default settings. ;********************************* ;AutoHotKey Script ;captain_carrot ;Jan 1, 2021 ;********************************* ;* Monitors for the superfluous 'Save Configuration' dialog box in paint.NET. When found, sends an immediate 'return' keypress to bypass and save immediately with default settings ;* To disable this behaviour, simply stop this script ;********************************* ; Sets the window title matching mode SetTitleMatchMode, 3 ; This is the tooltip that pops up if people hover over the script in the system tray Menu, Tray, Tip, In the world-class paint.NET program this script automatically`nclears the extra 'Save Configuration' dialog box when saving. ; The following procedure will only run if paint.NET is the active window, and will keep resetting to the 'Start' label as long as the script is running #IfWinActive, ahk_class WindowsForms10.Window.8.app.0.b7ab7b_r6_ad1 Start: WinWaitActive, Save Configuration, Send, {ENTER} Goto, Start ;******************************** To use this script, you will need to a) install AutoHotKey on whatever system is running Paint.NET. Here is the download link: https://www.autohotkey.com/download/ahk-install.exe b) copy the above script into a text editor, saving it as <whatever filename you want>.ahk c) double-click on the newly-created ahk file (note: if it opens in Notepad, change the file extension from .txt to .ahk) That should be it. Now every time the Save Configuration dialog box surfaces, it should be dismissed with an 'Enter' keypress automagically. Hope that is satisfactory to everyone: we are not mucking with the code to 'fix' this relatively minor user interface anachronism, yet people who find this extra dialog box sufficiently annoying will now have a way to bypass it automatically. Best regards, and goodbye to 2020! cap p.s. AHK is useful for tweaking all sorts of weird Windows quirks, so if this is your first time reading about it, hope you find it a useful tool in other areas of your digital life! I am by no means an expert, but the beauty of AHK is that you don't need to be an expert to get the results you are looking for...much like paint.NET, now that I think of it: in both cases the software is just that good 😄 1 2 Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted January 2, 2021 Share Posted January 2, 2021 Yeah, we've been telling people to use AHK for years (for various things in Paint.NET). I'm surprised no one else had posted an AHK script thus far. Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
lynxster4 Posted January 3, 2021 Share Posted January 3, 2021 Thank you @captain_carrot! This is a great 'click' saver. 👍 Quote My Art Gallery | My Shape Packs | ShapeMaker Mini Tut | Air Bubble Stained Glass Chrome Text with Reflections | Porcelain Text w/ Variegated Coloring | Realistic Knit PatternOpalescent Stained Glass | Frosted Snowman Cookie | Leather Texture | Plastic Text | Silk Embroidery Visit my Personal Website "Never, ever lose your sense of humor - you'll live longer" Link to comment Share on other sites More sharing options...
Chris B. Posted January 27, 2023 Share Posted January 27, 2023 I've updated to AutoHotKey 2.02 and the script for this no longer runs. The error I get reads: Error: Function calls require a space or "(". Use comma only between parameters. Text: SetTitleMatchMode, 3 I possess some very rudimentary scripting knowledge, but not enough to figure out why the script suddenly stopped working with the new version. I've tried to add a semi-colon in front of the SetTitleMatch mode command and it allowed the script to move to the next line, but it also failed as did the third when I commented out the second. Has anyone else using this script run into the same issue and resolved it? Quote Link to comment Share on other sites More sharing options...
CircleBox Posted January 27, 2023 Share Posted January 27, 2023 There is literally no room for an 'export to png' button. Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted January 27, 2023 Share Posted January 27, 2023 1 hour ago, Chris B. said: I've updated to AutoHotKey 2.02 and the script for this no longer runs. AutoHotkey v2 removed support for the legacy syntax. The script will need to be rewritten using the expression syntax. If you need help with that, you'll need to ask the AHK community. Alternatively, you can just install both v1 and v2. Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
Rick Brewster Posted January 27, 2023 Share Posted January 27, 2023 1 hour ago, CircleBox said: There is literally no room for an 'export to png' button. Why on earth would those be good places for that sort of button Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
CircleBox Posted January 27, 2023 Share Posted January 27, 2023 (edited) Here is my quick and ultra professionally made mock up. 😹 Edit: Accidentally edited my edit. I forgot the save location box. It could also be ask every time or specify a directory. Edited January 27, 2023 by CircleBox Mistake Quote Link to comment Share on other sites More sharing options...
Chris B. Posted February 3, 2023 Share Posted February 3, 2023 On 1/27/2023 at 8:56 AM, toe_head2001 said: AutoHotkey v2 removed support for the legacy syntax. The script will need to be rewritten using the expression syntax. If you need help with that, you'll need to ask the AHK community. Alternatively, you can just install both v1 and v2. Thanks for the quick response. Although I have some very modest scripting ability, I don't have enough to convert the script so I'll take your suggestion about just reinstalling v1 to run parallel with v2. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.