Gregory Diebold
49 discussion posts
I currently have a trigger that fires on a particular program startup, which works fine. I would now like to add a 'shutown' trigger for that same program.
To accomplish this, I created a Window Destroyed trigger (A) which calls a sub-function (B). It does fire when the program is closed, but it seems to also fire when the program is started. I verified my suspicion by adding a 'Show Notification' action.
Is this the correct event to choose (C) to fire a fuction on a program close?
APT DOWN.png
Jan 5, 2024 (modified Jan 5, 2024)
•
#1
JLJTGR
104 discussion posts
If the program has something like a splashscreen at startup, that would be a window and it might destroy it soon after. But there could be other things that qualify that aren't even visible. It's hard to say.
If you're looking for the program closing and you already know what the main window is, just drag the crosshair from Window Class to the program and filter it to that.
@JLJTGR Thanks for helping out!