How to know when users clicks on another window?

Blitz3D Forums/Blitz3D Programming/How to know when users clicks on another window?

Pinete(Posted 2007) [#1]
Hi!
I would like to know when the user changes focus on another window.
Basically what I like to do is something like a lot of casual games implements: When you're playing in windowed mode and click on another window, your game stops.

How could I do this?

Thanks in advance!


OJay(Posted 2007) [#2]
http://blitzbasic.com/codearcs/codearcs.php?code=853 :)


Pinete(Posted 2007) [#3]
Thanks a lot OJay!!!
Thank you very much! ;)


all the best!