Jump to content

trying to launch IE with no address bar and no menubar


Go to solution Solved by abberration,

Recommended Posts

I'm trying to launch Internet Explorer with no menu bar or address bar.

I can do it using the following vbs script.

----

Dim objIE
Set objIE = WScript.CreateObject ("InternetExplorer.Application")
ObjIE.Toolbar = false
objIE.Navigate "www.google.com"
objIE.Visible = true

---

In autoit I'm trying to use scriptcontrol

---

$ScriptControl = ObjCreate("MSScriptControl.ScriptControl")
$ScriptControl.language = "VBScript"
$VBSCode = _
'Dim objIE' & @CRLF & _
'Set objIE = WScript.CreateObject ("InternetExplorer.Application")' & @CRLF & _
'ObjIE.Toolbar = false' & @CRLF & _
'objIE.Navigate "www.google.com"' & @CRLF & _
'objIE.Visible = true'

$ScriptControl.ExecuteStatement($VBSCode)

----

It runs with no error but IE does not launch IE - any help would be appreciated.

thank-you

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