I've been working on this thing, which I think is pretty neat, but I haven't written about it yet, so here we go.

I have a piece of software that monitors a piece of hardware, and when the hardware fails in some way I want to be alerted to it.

The software has no way to alert the user other than by showing an error in the monitor window with text on a red background, so here's my idea...

1/3

I have a computer that always shows the monitor software, so there's a script that launches the software at boot, then moves it to a specific area of the screen, and sets the window a specific size...

From there a script can do an image capture and read the pixels in the image to see if that red background with text is present. If it is, we've got an error!

From there I can send a notification, play a sound, or do whatever to alert myself or someone else that something has gone wrong...

2/3

@rasterweb that's horrible! It makes my stomach churn, why isn't there a better way.
@stephlahs The software is pretty much shit, but it's the only option and I can think of lots of ways to improve it but none will happen so doing something I *can actually do* is fine with me...