Ascertain if application does not have focus

BlitzMax Forums/BlitzMax Programming/Ascertain if application does not have focus

Pengwin(Posted 2010) [#1]
Not sure if this has been asked before, but I cannot seem to find it in the forums.

I need to get my game to determine if it is the currently active window, and to pause when running in the background. I can't seem to find a way to do this, and yet I have seen it in other peoples projects.

Any ideas?


Pengwin(Posted 2010) [#2]
Forgot to mention, I'm coding on OSX, but I would also like the facility to be cross platform with Windows.


Tachyon(Posted 2010) [#3]
LOL! =D I just asked this:

http://www.blitzbasic.com/Community/posts.php?topic=88976

There is no way to easy or accurately search the documentation for what you are looking.


Pengwin(Posted 2010) [#4]
Thanks Tachyon, that is exactly what I am after.