' Creates a menu of buttons in IE ' you click a button and it returns a value ' Returns 0 if user clicks Cancel of the red X (or alt-F4) to close IE window instead of making a selection Option Explicit WScript.Echo IEButtons( ) Function IEButtons( ) ' This function uses Internet Explorer to create a dialog. Dim objIE, sTitle, iErrorNum ' Create an IE object Set objIE = CreateObject( "InternetExplorer.Application" ) ' specify some of the IE window's settings objIE.Navigate "about:blank" sTitle="Make your choice " & String( 80, "." ) 'Note: the String( 80,".") is to push "Internet Explorer" string off the window objIE.Document.title = sTitle objIE.MenuBar = False objIE.ToolBar = False objIE.AddressBar = false objIE.Resizable = False objIE.StatusBar = False objIE.Width = 250 objIE.Height = 280 ' Center the dialog window on the screen With objIE.Document.parentWindow.screen objIE.Left = (.availWidth - objIE.Width ) \ 2 objIE.Top = (.availheight - objIE.Height) \ 2 End With ' Wait till IE is ready Do While objIE.Busy WScript.Sleep 200 Loop ' Insert the HTML code to prompt for user input objIE.Document.body.innerHTML = "
" _ & "
" _ & "" _ & "" _ & "" _ & "" _ & "