Hello Guys, I am not a VBScript geek. I just google for the scripts I need.
My purpose here was to create an IE page without any of the toolbars (address, menu, tool) and one that refreshes after a certain time delay.
With IE 6 it worked perfectly well. I am now running an IE7 with a Windows Vista OS.
The script I used was
WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\blank\about", 2, "REG_DWORD" Const clInterval = 480 Dim lMinutes : lMinutes = 0 Dim oIE Dim bQuit : bQuit = False
Set oIE = WScript.CreateObject("InternetExplorer.Application", "oIE_")
oIE.Navigate "http://www.google.com" 'oIE.AddressBar = False 'oIE.MenuBar = False 'oIE.ToolBar = False 'oIE.Visible = True
Do Until bQuit If lMinutes >= clInterval Then oIE.Refresh lMinutes = 0 End If WScript.Sleep(1500) lMinutes = lMinutes + 1 Loop
Sub oIE_OnQuit() bQuit = True End Sub
WshShell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\blank\"
I now come up with this error.
Line:1 Char:1 Error bject required: 'WshShell' Code:800A01A8 Source:Microsoft VBScript runtime error

Please advise.
|