I'm trying to automate some web forms using IE 6.0, and am running into a performance problem. I've searched the forums without success, so here I am.
Basically the issue is that if a button on the web form brings up another IE window, an incredible delay is seen when communicating with IE. I've attached a test program along with a short html file that illustrates the issue. I'm using AutoIt 3.3.4.0
To duplicate:
1) Bring up the "launchTest.html" file in IE (you may have to approve some blocked content)
2) Start the "launchTest.au3" script
3) Click on the "Restart Connection" button as many times as you'd like (on my system, the operation takes ~240 ms).
4) Now click on the button in the IE form. Google's home page should be displayed
5) Click on the "Restart Connection" button again. On my system, the operations now take ~3200 ms!
Additional observations:
1) If I comment out the ObjEvent() call (line 46 of the script), the problem goes away.
2) If I exit the script and restart it, the problem goes away (until another window is launched).
3) When the problem is happening, all of the other _IE calls (_IEGetObjById() for example) that I've tested also take a long time to return. However, the data returned is valid.
4) It doesn't make any difference if I have event functions defined or not. However, when the problem is happening, I don't seem to be receiving any event callbacks.
I've searched by every keyword I can think of to see if I'm doing something fundamentally wrong with ObjEvent, but I didn't find anything. Any help will be greatly appreciated.
Rick launchTest.html launchTest.au3