python wia and RegisterEvent
rupole at hotmail.com
Sun Apr 18 21:22:03 EDT 2010
> while True:
> print "sleep"
>When I plug / unplug a USB WIA device nothing shows up.
> My C# implementation prints messages on wiaEventDeviceConnected /
> wiaEventDeviceDisconnected events if I register them.
> What am I missing?
You need to be processing messages to receive COM events.
Try replacing your sleep loop with pythoncom.PumpMessages().
More information about the Python-list