Hello,
Was wondering if anyone could help. I need to display some text and a button, using a vbs.file. I'm doing it this way inorder that I can use HTML and also specifiy a paired down version of Explorer(essentially a simple window that displays HTML).
To do this I use.
Set objExplorer = CreateObject("InternetExplorer.Application"
objExplorer.Navigate "about:blank"
objExplorer.ToolBar = 0
objExplorer.StatusBar = 0
objExplorer.Width = 800
objExplorer.Height = 570
objExplorer.Left = 0
objExplorer.Top = 0
objExplorer.Visible = 1
Set objDocument = objExplorer.Document
objDocument.Open
Set objExplorer = WScript.CreateObject("InternetExplorer.Application", "IE_"
objDocument.Writeln"<html><head><title>CCN Announcement</title></head>"
objDocument.Writeln"<body bgcolor=#5959ab>"
objDocument.Writeln"<h2>Communication Details</h2>"
objDocument.Writeln"<Br>"
objDocument.Writeln"<Br>"
objDocument.Writeln"<input align=centre id=cmdOK type=Button name=cmdOK value=OK>"
objDocument.Writeln"<body><html>"
objDocument.Writeln"<script language=VBScript>"
Sub cmdOK_onClick()
WScript.Quit
End Sub
Sub IE_onQuit()
Wscript.Quit
End Sub
Unfortunately the button doesn't work. I'm certain it should be simple but I'm completely new to this so have no idea what I'm doing wrong.
Any ideas appreciated.
Thanks
T
Was wondering if anyone could help. I need to display some text and a button, using a vbs.file. I'm doing it this way inorder that I can use HTML and also specifiy a paired down version of Explorer(essentially a simple window that displays HTML).
To do this I use.
Set objExplorer = CreateObject("InternetExplorer.Application"

objExplorer.Navigate "about:blank"
objExplorer.ToolBar = 0
objExplorer.StatusBar = 0
objExplorer.Width = 800
objExplorer.Height = 570
objExplorer.Left = 0
objExplorer.Top = 0
objExplorer.Visible = 1
Set objDocument = objExplorer.Document
objDocument.Open
Set objExplorer = WScript.CreateObject("InternetExplorer.Application", "IE_"

objDocument.Writeln"<html><head><title>CCN Announcement</title></head>"
objDocument.Writeln"<body bgcolor=#5959ab>"
objDocument.Writeln"<h2>Communication Details</h2>"
objDocument.Writeln"<Br>"
objDocument.Writeln"<Br>"
objDocument.Writeln"<input align=centre id=cmdOK type=Button name=cmdOK value=OK>"
objDocument.Writeln"<body><html>"
objDocument.Writeln"<script language=VBScript>"
Sub cmdOK_onClick()
WScript.Quit
End Sub
Sub IE_onQuit()
Wscript.Quit
End Sub
Unfortunately the button doesn't work. I'm certain it should be simple but I'm completely new to this so have no idea what I'm doing wrong.
Any ideas appreciated.
Thanks
T