How to detect that window is not active?

BlitzMax Forums/BlitzMax Beginners Area/How to detect that window is not active?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I would like to turn off music and pause my game whenever player makes my game out of focus (switches to another application). How can I check if my application window is active or not?

best
Roman