Jump to content

_IEExample Not Working


furrycow
 Share

Recommended Posts

Ok, so ive never had it working, and i havent changed any script whatsoever...even when i try scripts in the help file, so therefore click "Open this script", and then run that, all it does is create an IE window with the address "about:blank". And then in the bottom bit of Scite (i cant think what its called, where the status of the uncompiled script is shown) is says:

C:\Program Files\AutoIt3\Include\IE.au3 (2348) : ==> The requested action with this object has failed.:

$o_object.document.Write($s_html)

$o_object.document.Write($s_html)^ ERROR

Now, ive looked at the <IE.au3> and im not that advanced with autoit, but nothing strikes me as being off, but here it is anyway:

Func _IEDocWriteHTML(ByRef $o_object, $s_html)
    If Not IsObj($o_object) Then
        __IEErrorNotify("Error", "_IEDocWriteHTML", "$_IEStatus_InvalidDataType")
        SetError($_IEStatus_InvalidDataType, 1)
        Return 0
    EndIf
    If Not __IEIsObjType($o_object, "browserdom") Then
        __IEErrorNotify("Error", "_IEDocWriteHTML", "$_IEStatus_InvalidObjectType", "Expected document element")
        SetError($_IEStatus_InvalidObjectType, 1)
        Return 0
    EndIf
    ;
    $o_object.document.Write($s_html)
    $o_object.document.close()
    Local $oTemp = $o_object.document
    _IELoadWait($oTemp)
    SetError(@error)
    Return -1
EndFunc   ;==>_IEDocWriteHTML

I hope it can be fixed, it would greatly help me!!

Edited by furrycow
Instant Lockerz Invite - www.instantlockerzinvite.co.uk
Link to comment
Share on other sites

Thanks for the reply. Every example in the help file does not work...they all come back with the same error...im guessing none of them work because it is the function in the UDF that actually writes the html into the document...and as every example requires the html to be written, thats why none of them work...i honestly see no reason why it isnt working! I was just really hoping someone knew what it could be.

Instant Lockerz Invite - www.instantlockerzinvite.co.uk
Link to comment
Share on other sites

I just downgraded from IE8 Beta 2 to IE7 lastnight.

The examples definitely didn't work in IE8 I got the about:blank too.

It never bothered me cause I figured out hwo to use the stuff anyway.

But after seeing your post I tried it with IE7 and they work fine.

Kenny

Edited by ken82m

 "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Link to comment
Share on other sites

Nahuel- I didn't say it didn't work, just the examples don't come up :)

Furrycow- Don't worry about even I don't believe me sometimes lol :)

Kenny

Edited by ken82m

 "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Link to comment
Share on other sites

Yeah same here lol

I got sick of the bugs here and there and the compatability mode.

So when I read that they moved the release date from

November 08 to april 09 I gave up lol

Kenny

 "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Link to comment
Share on other sites

I haven't tried IE8 yet... not anxious to bugger up a machine... if more people are doing it I'll put up a VM and try it. Next person who is able to try to reproduce, please try adding #RequireAdmin to get around UAC like is needed in Vista and post results.

thanks,

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...