Menu

Trigger Message Box Action Another Trigger?

Kev
2023-02-21
2026-06-22
  • Kev

    Kev - 2023-02-21

    I'd like Keepass to show a message box when a database is opened to ask if I'd like to back it up.

    I can get the message box to pop no problem, but within the "Action" field for the message box action, the only options are "Abort current trigger execution" or "Execute command line / URL".

    What I'd ideally like to do is execute another trigger (it does several things, so one line in the "Execute command..." isn't enough).

    Is it possible to execute a trigger using the command line or is it not possible at the moment to do this?

     
  • Paul

    Paul - 2023-02-21

    Triggers can't be run from within KeePass, but a timed trigger can be activated and set to turn off after it has run.
    Create separate a timed trigger - once a second - that is initially off.
    In your backup trigger, add an action after the message that changes the timed trigger state to on.

    Alternatively, use one of the backup plug-ins.

    cheers, Paul

     
  • Kev

    Kev - 2023-02-21

    Thanks for the info.
    Not sure that will work for me as my backup trigger does a Keepass sync and a few other things so didn't want to use a plug in etc.
    I just thought some triggers can reference other triggers (Toolbar button and trigger on/off for example) and wondered if there was a way of having that as an option in the message box.

    So in the options below, if there is either a way of referencing a trigger from the "Execute command..." option or is it possible for Keepass to have an extra option to execute or turn on another trigger that's referenced here? (Like the toolbar button can?)

     

    Last edit: Kev 2023-02-21

Log in to post a comment.