How to receive events (eg. user mouse clicks) from IE

J Correia correiajREMOVECAPS at hotmail.com
Sat May 21 13:56:31 EDT 2005


"Roger Upole" <rupole at hotmail.com> wrote in message
news:428f5882$1_2 at spool9-west.superfeed.net...
> There does appear to be some sort of conflict between the two event
> hooks.  I wasn't seeing it before since IE was getting google from my
> browser cache and it was coming up almost instantaneously.  As soon
> as I switched the URL to a page that loads slowly, I got the same
> result.
>
>    Adding win32gui.PumpWaitingMessages() to the wait loop
> seems to allow both event hooks to run without blocking each other.
>
>      Roger

I added that line to the wait loop and while it does indeed speed it
 up dramatically (in 10 tests: min = 13 sec; max = 33, ave ~ 20 secs)
it's still nowhere near the 1-2 secs it takes without hooking the
IE events.  I also can't explain the wide differences between min
and max times since they seem to occur randomly
(e.g. min occurred on 7th run, max on 4th).

I assume that that response time won't be adequate for the original
poster's needs, due to the slowdown in browsing for his users.

Jose








More information about the Python-list mailing list