Jump to content

Shell.Explorer.2 COM obj issue


ravi11
 Share

Recommended Posts

hi all,

i am a newbie to Autoit It,i was going through COM objects and i am stuck at a point.

The problem that i m facing is i m not able to use "navigate" with the "Shell.Explorer.2"

I m using Autoit v3 and have IE6 installed in my system

following is my script :

$oIE = ObjCreate("Shell.Explorer.2")

$oIE.visible = 1

$oIE.navigate( "www.google.com" )

please let me know if i am doing something wrong here

the Error message i get in the SCiTE Editor is like this

$oIE.navigate( "www.google.com" )^Error

Note :

1.I am able to see the "Microsoft Web Browser" with the OLE Viewer,so its not that this com object is not present in my system

2. Also,this is not the case with "InternetExplorer.Application.1" COM obj

the below mentioned script runs without any error

$oIE = ObjCreate("InternetExplorer.Application.1")

$oIE.visible = 1

$oIE.Navigate( "www.google.com" )

So please let me know what the error with "Shell.Explorer.2" com obj is,

thanks,

ravi

Link to comment
Share on other sites

That object is intended to be embedded... you cannot interact with it until you give it a container (notice that your .visible produced no result). See GuiCtrlCreateObj or _IECreateEmbedded

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

That object is intended to be embedded... you cannot interact with it until you give it a container (notice that your .visible produced no result). See GuiCtrlCreateObj or _IECreateEmbedded

Dale

Hey,thanks a lot i am now able to work with it.

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