Should be possible to disable colorized passwords using KPScript
A lightweight and easy-to-use password manager
Brought to you by:
dreichl
I use KPScript.exe with options -c:Export ... -guikeyprompt -Format:"Customizable HTML File". Need to export kdbx file to readable html format frequently.
Now passwords always are colorized which was not before some releases of KeePass. I have disability with eyes and problems reading colorized passwords. Would be good if there is an option to disable colorized passwords without that I have to manually uncheck the checkbox in the guikeyprompt. A global setting, or a command line option would be nice.
This was added in KeePass 2.51 and is on by default. It either needs to be off by default or have an option in KPscript.
cheers, Paul
Hello, are there plans implement your proposed solutions? Problem is that with my eye disability it's hard read the colors.
You may already know this, but for the benefit of others who may come looking here in the future, there is an option for this in KeePass:
Last edit: T. Bug Reporter 2023-07-26
Yes, thanks for the screenshot, this I knew already. But as written in my initial description, this is a step to do manually. Therefore I prefer command line option, because this can be scripted and cannot forget to uncheck checkbox.
Also, there is a feature in KPScript that apparently allows access to KeePass features that aren't available from a command line, but using it requires knowledge of the KeePass internals that I suspect very few people have - possibly only the KeePass author. (I wasn't aware that this facility existed until now, and I've never seen anyone discuss using it here before now.)
In the next KeePass version (2.55), the options in the HTML export dialog will be remembered (also when called by KPScript).
Here's the latest development snapshot for testing:
https://keepass.info/filepool/KeePass_230918_KPS.zip
(includes a KPScript build).
If you want that the password coloring option is always turned off by default (even if it was turned on previously), you could use an enforced configuration file [1] that turns off the option; see the attached 'KeePass.config.enforced.xml' file (copy it into the KeePass application directory).
I'm not planning to add a command line option for this.
Thanks and best regards,
Dominik
[1] https://keepass.info/help/kb/config_enf.html
Last edit: Dominik Reichl 2023-09-18
Hello Dominik, thanks much for this. Solution with remembering the setting is perfect, that is absolutely sufficient for me. I appreciate your fix.
Jaques.