This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Log window focus and appearance. | |
Written to try to debug some window popping up and stealing focus from my | |
Spelunky game for a split second. | |
Developed with 32-bit python on Windows 7. Might work in other environments, | |
but some of these APIs might not exist before Vista. | |
Much credit to Eric Blade for this: | |
https://mail.python.org/pipermail/python-win32/2009-July/009381.html |