• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 846
  • Last Modified:

IE 7 automation

hi,
I'd like to do something  in vbscript like this

set ie = createobject("internetexplorer.application")
ie.navigate "about:blank"

but I'd like also to use the -extoff (the equivalent of start without add-ons)

I m using IE7 on XP SP2

any suggestions ?

m   a    r    c
0
lecaf
Asked:
lecaf
  • 3
1 Solution
 
Ron MalmsteadInformation Services ManagerCommented:
Set WshShell = Wscript.CreateObject("Wscript.Shell")
IE7 = WshShell.Run("iexplore -extoff "about:blank"")
WshShell.AppActivate(IE7)
0
 
Ron MalmsteadInformation Services ManagerCommented:
Sorry...had double quotes in the previous post...  the below will work.

Set WshShell = Wscript.CreateObject("Wscript.Shell")
IE7 = WshShell.Run("iexplore -extoff about:blank")
WshShell.AppActivate(IE7)
0
 
lecafAuthor Commented:
Sorry for the long time to answer...

wel it does't do the trick... :(
the problem is that I do other stuff with the ie object like
ie.toolbar = 0
ie.statusbar = 0
ie.resizable = 0
ie.visible = 1
ie.Silent = 1
ie.RegisterAsBrowser =1
ie.navigate "about:blank"
do until ie.readyState = 4: wscript.sleep 100: loop
set doc = ie.document
doc.title = "Time Zone Selector" & string(100,chr(160))
set list = doc.createElement("select")


for  creating and  pushing in a htm document... I dont see how I could it with the run method ...


TY xuserx anyway

m  a  r    c
0
 
Ron MalmsteadInformation Services ManagerCommented:
Sorry...forgot..you have to specify the path for IE 7...different than IE 6..

c:\Program Files\Internet Explorer\iexplore.exe


anyway the code you found is better.....
0
 
Computer101Commented:
PAQed with points refunded (250)

Computer101
EE Admin
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now