Checking focus of program

Blitz3D Forums/Blitz3D Programming/Checking focus of program

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've written a Blitz3D program in window mode. What I want to know is there any way to check for focus so I can pause the game should the user click on another window or use Alt-Tab?