Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Dialog Box in vbscript

Status
Not open for further replies.

nzstorm

Technical User
Jul 28, 2007
3
CA
Reposting in the correct forum.

While running a vbscript, I would like to prompt the user with a few inputs that are required to continue with the script.
some variable fields, a few check boxes, maybe a dropdown list, etc.. All in a dialog box.
The only thing I see is InputBox function, but it seems very limited. I would like to customize a dialog box by size, content, fields, etc..

all need to be in a .vbs script, I am not using HTML.
If you could point me to the right direction that would be greatly appreciated.
thanks
 
Instead of a dialog box, would you consider input from the terminal. If so, you could use WScript.stdin and WScript.stdout. eg
Code:
WScript.stdout.WriteLine "Who are you?"
nutcase = WScript.stdin.ReadLine
WScript.stdout.WriteLine "Goodbye " & nutcase
 
Since you're looking for drop down boxes and checkboxes then you can't do that with VBScript. The closest thing would be to spawn an instance of InternetExplorer from within your script...write out your HTML code to it...then wait for the input and have it returned to the VBScript to continue processing the information.

When would this script be running? If the user would execute it, then maybe an HTA would be better.

--------------------------------------------------------------------------------
dm4ever
My philosophy: K.I.S.S - Keep It Simple Stupid
 
What dm4ever explained seems like something that would work for my application. Do you have any examples of how to do that ?
HTA will not work because I want to execute the vbscript from within a different program and during the execution, a dialog box appears.

 
Why not write an actual compiled VB application that can have all the rich GUI features you want?

[COLOR=black #d0d0d0]When I walk, I sometimes bump into things. I am closing my eyes so that the room will be empty.[/color]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top