We have software that runs an industrial packaging machine. Most of the time nothing is happening on the screen, but when there is an error, my software will pop up a message with information on the relay that gave an error, and then it disappears after 30 seconds. I only want to capture the error. Is it possible to only record when the error pops up?