1

I am using InputBox() function in my vbscript code and it's working fine and I am using various of InputBox() functions.

Now my question is every time when InputBox() is called, it opens in a separate window. Is there any way or function that I can input my data only in one window page and all inputs are handle with one submit button?

aphoria
  • 19,796
  • 7
  • 64
  • 73
Rikky
  • 101
  • 2
  • 12

2 Answers2

2

You can't re-use the 'same' InputBox, but for a few simple inputs you could ask once for several items and parse the user's input (like command line arguments). In the long run - and for many inputs - it's better to use an HTA Application.

P.S. (wrt to peter's proposal)

HTAs are full-fledged applications. These applications are trusted and display only the menus, icons, toolbars, and title information that the web developer creates. In short, HTAs pack all the power of Internet Explorer—its object model, performance, rendering power and protocol support—without enforcing the strict security model and user interface of the browser.

(MS on HTAs)

Tutorial to get you started

Ekkehard.Horner
  • 38,498
  • 2
  • 45
  • 96
0

A part from using a HTA you can use Internet Explorer like a GUI and use all the goodies of HTML to interact between your script an the user. See this question of me with a vbscript sample.

use-browser-as-gui-in-ruby

see also my answer here /adding-a-gui-to-vbscript

Community
  • 1
  • 1
peter
  • 41,770
  • 5
  • 64
  • 108