[python-win32] message queue
Radu Ciora
raduciora at yahoo.com
Thu Oct 4 13:04:28 CEST 2007
Hi all,
given this code:
while 1:
time.sleep(1)
l_hwnd = win32gui.GetForegroundWindow()
try:
msg = win32gui.GetMessage(l_hwnd, 0, 0)
print msg
except:
traceback.print_exc()
can anyone tell me what's wrong with it, 'cos it doesn't print anything?
I'm trying to get into this tiny application message queue and print out the messages that come in to it.
Thanks a million,
Radu.
___________________________________________________________
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html
More information about the python-win32
mailing list