Jump to content

Help with IE automation please


Vhaerun
 Share

Recommended Posts

Hello guys !

I've been trying "hard" :) to use IE.au3 , but with very little success .

My script's execution lasts until it reaches this line

$oDoc = _IEDocumentGetObj($oIE)

I mention I'm using Windows Vista , and I have as the script's first line #RequireAdmin

I also tried the examples Dale posted about displaying form information , but none of them seem to work .

What can I do ?

Link to comment
Share on other sites

Not nearly enough information provided.

What are you trying to do? Display more of your code (stand-alone reproducer is best). What messages are generated to the SciTe console?

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

Not nearly enough information provided.

What are you trying to do? Display more of your code (stand-alone reproducer is best). What messages are generated to the SciTe console?

Dale

Hello Dale !

Thanks for your prompt response !

My Scite console doesn't show any output at all .

In your 30 page thread about IE you had an example about displaying form informations ( you used it on hotmail.com ). I tried to do the same thing , but my script always dies after the _IEDocGetObj function call .

I'm posting some sample code :

#RequireAdmin
#include <IE.au3>

$oIE = _IECreate()
_IENavigate($oIE, "http://www.hotmail.com")
$oDoc = _IEDocumentGetObj($oIE)

$forms = _IEFormGetCollection($oDoc)
For $form in $forms
    MsgBox(0,"Info",$form.name)
;ConsoleWrite("Form name: " & $form.name & @CR)
    $fes = _IEFormElementGetCollection($form)
    For $fe in $fes
        MsgBox(0,"Info",$fe.name)
    ;ConsoleWrite(@Tab & $fe.name & @TAB & "Type: " & $fe.type & @CR)
    Next
Next

As I read the pages about IE , I noticed there was once a function that would get a reference to a form by it's index , but I see it's no longer here .

Thanks a lot Dale !

George

Link to comment
Share on other sites

Also, sounds like you are using very old examples from the forum... IE.au3 is now included in the standard AutoIt distribution and there are very comprehensive examples in the AutoIt helpofile for each function. Look in the helpfile under User Defined Functions, IE Management.

Dale

P.S. also look at the AutoIt snippets data base (in my sig) for more examples including one for Hotmail

Edited by DaleHohm

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...