I need to check if my application is hidden behind any other windows / lost focus. Basically i have an application and if an event occurs and the application is not focused i can flash the window.
I actually wrote this a few month ago but lost the source, before i used something simple like application.focused, although for the life of me can't remember what it was. Thanks