Jump to content
Sign in to follow this  
jbacampos

_IEAttach problem

Recommended Posts

jbacampos

Hi,

Every time I use _IEAttach, as in

#include <H:\Util\AutoIt3\Include\IE.au3>

$oIEAl = _IEAttach ("Google")

exit

I get an error message:

>"H:\Util\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "J:\Contas\CriaLista\Teste2.au3" /autoit3dir "H:\Util\AutoIt3" /UserParams

+>11:12:09 Starting AutoIt3Wrapper v.1.7.6

>Running AU3Check (1.54.6.0) params: from:H:\Util\AutoIt3

+>11:12:09 AU3Check ended.rc:0

>Running:(3.2.2.0):H:\Util\AutoIt3\autoit3.exe "J:\Contas\CriaLista\Teste2.au3"

H:\Util\AutoIt3\Include\IE.au3 (284) : ==> The requested action with this object has failed.:

Local $o_ShellWindows = $o_Shell.Windows ()

Local $o_ShellWindows = $o_Shell.Windows ()^ ERROR

+>11:12:09 AutoIT3.exe ended.rc:0

+>11:12:10 AutoIt3Wrapper Finished

>Exit code: 0 Time: 2.089

Any ideas?

Thanks a lot.

Share this post


Link to post
Share on other sites
DaleHohm

Do you have another machine you can try this on? It appears there is something screwy on this machine. What you are doing is essentially executing only these two lines of code:

Local $o_Shell = ObjCreate("Shell.Application")

Local $o_ShellWindows = $o_Shell.Windows ()

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
jbacampos

I've just tried it on another machine, and the result was exactly the same. The first computer runs Windows XP Home, and the second, XP Professional.

Thanks for the response.

Do you have another machine you can try this on? It appears there is something screwy on this machine. What you are doing is essentially executing only these two lines of code:

Local $o_Shell = ObjCreate("Shell.Application")

Local $o_ShellWindows = $o_Shell.Windows ()

Dale

Share this post


Link to post
Share on other sites
DaleHohm

I see that you are including IE.au3 with a non-default file path:

#include <H:\Util\AutoIt3\Include\IE.au3>

Can you please insure that you are using the default version that ships with AutoIt by using simply

#include <IE.au3>

and then verify the IE.au3 version by putting this in your script and seeing what is written to the console:

_IE_VersionInfo ( )

Also, please make certain that you test with no special windows or browsers (or customized windows file explorers running).

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.