RichPottruff Posted August 15, 2014 Posted August 15, 2014 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
Solution abberration Posted August 15, 2014 Solution Posted August 15, 2014 This seems to work: $objIE = ObjCreate ("InternetExplorer.Application") $objIE.Toolbar = 0 $objIE.Navigate ("www.google.com") $objIE.Visible = 1 Easy MP3 | Software Installer | Password Manager
RichPottruff Posted August 15, 2014 Author Posted August 15, 2014 This seems to work: $objIE = ObjCreate ("InternetExplorer.Application") $objIE.Toolbar = 0 $objIE.Navigate ("www.google.com") $objIE.Visible = That worked. thanx - i'll plug it into my larger code. thanks a ton.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now