Sign in to follow this  
Followers 0
vatobeto

Vista SP1 and Newest AutoIt (3.2.12.1) Incompatibility?

3 posts in this topic

I posted not too long ago about this, but still was unable to resolve the issue. I had been using Vista Ultimate initial issue and writing successful _IE scripts. Then I upgraded to Vista Ultimate SP1, and boom, all hell broke loose. Specifically, the _IELinkGetCollection function either hung up, found no links or produced odd errors located in the IE.au3 file. So, I uninstalled AutoIt v3.2.12.1, and reinstalled AutoIt v3.2.10.0. I ran my scripts again - no problems. Do I have gremlins?

My system:

Intel Core 2 Duo E8400 Socket 775 3.0 GHz

Windows Ultimate SP1

MSI P35 Neo2 Platinum MoBo

4 GB Patriot DDR2 RAM

(MS Auto Upgrade OFF)

Example offending code which didn't work with v3.2.12.1, but does with 3.2.10.0:

#RequireAdmin
#include <IE.au3>
$oIE = _IECreate ("http://www.autoitscript.com")
$oLinks = _IELinkGetCollection($oIE)
$iNumLinks = @extended
MsgBox(0, "Link Info", $iNumLinks & " links found")
For $oLink In $oLinks
    MsgBox(0, "Link Info", $oLink.href)
Next

This code found no links with v3.2.12.1, but 19 with v3.2.10.0

Mystified - vatobeto.

Share this post


Link to post
Share on other sites



Seems odd... that code has not changed for a very long time.

MsgBox(0, "Link Info", $oIE.document.links.length & " links found")

Then try ConsoleWrite(_IEBodyReadHTML($oIE) & @CRLF)

just to insure there is valid content on the page $oIE points to.

This is still Windows, so a logout/reboot may also help...

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

Seems odd... that code has not changed for a very long time.

MsgBox(0, "Link Info", $oIE.document.links.length & " links found")

Then try ConsoleWrite(_IEBodyReadHTML($oIE) & @CRLF)

just to insure there is valid content on the page $oIE points to.

This is still Windows, so a logout/reboot may also help...

Dale

I deleted the downloaded copy of AutoIt v3.2.12.1 and downloaded a fresh one, then reinstalled it. Now it works. Apparently the original DL'd copy was corrupt. I should have tried that ages ago. Sorry for all the fuss.

vatobeto.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0