KeeAutoExec

Copyright © 2009-2022 Dominik Reichl. Distributed under the terms of the GNU General Public License v2.

This KeePass plugin allows to automatically open additional databases when opening a database.


Installation / Uninstallation

To install the plugin, copy the KeeAutoExec.dll, KeeAutoExec.plgx and KeeAutoExec_ReadMe.html files into the Plugins folder (KeePass can open this folder: menu 'Tools' → 'Plugins' → button 'Open Folder') and restart KeePass.

To uninstall the plugin, delete the three files.


Usage

First of all, create a new group in your database and name it "AutoOpen" (without the quotes).

Each non-expired entry in this group corresponds to a database that should be opened automatically when the current database is opened. The fields of each entry specify the following:

Disabling entries. If you want to disable an entry in the "AutoOpen" group (such that KeeAutoExec does not automatically open it), you can mark the entry as expired. Alternatively, you can add a custom entry string "Enabled" with the value "False" (without the quotes).

Direct key file. If the entry has a file attachment named "KeyFile.bin" (without the quotes), this is used as key file (only if no key file path has already been specified using the user name field).

Key provider. If the master key includes data supplied by a key provider plugin, specify the name of the key provider as value of the custom entry string "KeyProvider".

Windows user account. If the master key includes a Windows user account key, you can indicate this by creating a custom entry string "UserAccount" with the value "True".

Connection properties. The properties of the connection to the server that provides the database file can be specified using the following custom entry strings.

Existence checks.

Computer/device ID check. The custom entry string "IfDevice" (without the quotes) may contain a comma-separated list of computer/device IDs or negated computer/device IDs (with the prefix '!') on which the database is opened automatically. For example, if the string is "Pqr, Xyz", the database is opened automatically only on computers/devices called Pqr or Xyz. If the string is "!Pqr, !Xyz", the database is opened automatically on all computers/devices that are called neither Pqr nor Xyz. On Windows, the computer/NetBIOS name is used as ID; on Linux, the host name is used as ID; on Android, the Android device ID is used.

Order. If multiple databases should be opened, KeeAutoExec by default opens them in the order that the entries are stored in the database (in unsorted mode; you need to turn off sorting to see this order). However, you also can explicitly specify/override the order by defining priorities. To do this, create a custom entry string "Priority" (without the quotes) in each entry and set it to a number. Lower numbers mean higher priority; higher numbers mean low priority. Negative numbers are allowed. Example: you define an entry for database A.kdbx with the "Priority" field set to 50, a B.kdbx entry with priority 100, and a C.kdbx entry with priority -10. Then, KeeAutoExec would open the databases in order C.kdbx, A.kdbx, B.kdbx. If you do not specify a priority, KeeAutoExec assumes consecutive numbers, starting from 0 (i.e. the first database has a priority of 0, the second one 1, etc.).

Focus restoration. By default, when KeeAutoExec opens another database, this database is focused. If you prefer the current database to continue having the focus (i.e. the database opened by KeeAutoExec is opened in the background), create a custom entry string "Focus" with the value "Restore". This setting is ignored when opening a database manually using a menu command in 'File' → 'Open (KeeAutoExec)'.

Placeholders. All strings are Spr-compiled, i.e. placeholders and environment variables can be used.

Manual opening. Auto-open entries can also be executed manually via 'File' → 'Open (KeeAutoExec)'.

Hiding menu items. In order to hide an entry from the 'File' → 'Open (KeeAutoExec)' menu, set its custom string "Visible" to "False".


Version History


Links

Latest version of KeeAutoExec:
https://keepass.info/plugins.html#keeautoexec

Support:
https://sourceforge.net/p/keepass/discussion/329221/

Feature Requests & Bug Reports:
https://sourceforge.net/p/keepass/discussion/329220/

Donate:
https://keepass.info/donate.html