Skip to content

Instantly share code, notes, and snippets.

View Zod-'s full-sized avatar

Julian Hangstörfer Zod-

View GitHub Profile
@keturn
keturn / trackwindow.py
Created September 25, 2013 05:56
Log Windows focus changes.
"""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