Is there an event that triggers when a custom dialog has been minimized? I need my script to execute some commands when a user minimizes a custom dialog...