Sign in to follow this  
Followers 0
furrycow

_IEExample Not Working

12 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



And what's the example that isn't working? I tried the example at the help file for that UDF and it works fine.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

What version of IE and autoit do you have? They all work just fine for me, they always have.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

IE: Version 8 Beta 2

SciTE: Version 1.76

AutoIT: Version 3.2.12.1

EDIT: But i have used the function _IEDocWriteHTML before in other scripts i have written, and it has worked fine!

Edited by furrycow

Instant Lockerz Invite - www.instantlockerzinvite.co.uk

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "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."

Share this post


Link to post
Share on other sites

We'll wait for Dale to see this post and explain why IE.au3 doesn't work with IE8 :)

Share this post


Link to post
Share on other sites

Cheers guys, im downgrading as we speak, so will be able to see if it is fact true....not that i dont believe you ken!


Instant Lockerz Invite - www.instantlockerzinvite.co.uk

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

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

My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "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."

Share this post


Link to post
Share on other sites

After all these months of not knowing why...

It finally works, so yeah it was IE8. I can finally use IE Examples!!


Instant Lockerz Invite - www.instantlockerzinvite.co.uk

Share this post


Link to post
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


My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "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."

Share this post


Link to post
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

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