Re: User input via console

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jeff (junrue_at_removethis.hotmail)
Date: 03/01/04


Date: Sun, 29 Feb 2004 20:34:00 -0800

When using StdIn the characters typed by the user aren't echoed to the
console. Is that by design?

"Steve Fulton" <cerberus40@hotmail.com> wrote in message
news:OkJH9Mg$DHA.1792@TK2MSFTNGP12.phx.gbl...
> Jeff wrote:
> > I know this may be a stupid question, but I've googled
> > around, searched MSN groups, and this forum and can't
> > find an answer.
> >
> > I need to get user input from the console, not using
> > InputBox. I want to make a function, such as "readln"
> > that will give the user a prompt and return their answer
> > as a string or integer. VBScript must be able to do
> > this. Is my assumption bad?
>
> StdIn Property
> http://msdn.microsoft.com/library/en-us/script56/html/wsprostdin.asp
>
> Download Windows Script Documentation
>
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9
>
> --
> Steve
>
> There are no passengers on spaceship earth. We are all crew. -Marshall
McLuhan
>
>



Relevant Pages

  • Re: User input via console
    ... Jeff wrote: ... > When using StdIn the characters typed by the user aren't echoed to the ... > console. ... Is that by design? ...
    (microsoft.public.scripting.vbscript)
  • Re: why does this (windows) "tail" program not respond to the mouse?
    ... # redirect stderr to see debugging messages ... some syntax issue with the::console and the 2 in the redirection ... fconfigure stdin -blocking 0 ... global num ...
    (comp.lang.tcl)
  • Re: How to do "press any key to continue"?
    ... On windows, that's a console setting. ... Even with 'fconfigure stdin -buffering none', ... I could have sworn a raw/cooked switch for the console channel driver has come up in discussions before. ...
    (comp.lang.tcl)
  • Re: using keyboard arrows
    ... If you just used stdin or /dev/tty, ... tcgetattr; ... directly on a virtual console and not e.g. in Screen or xterm. ... I took a quick look at libsdl. ...
    (comp.unix.programmer)
  • Re: redirecting stdin of a task to file and back
    ... I use ioTaskStdGet/Set to save old stdin and set new stdin to ... > redirect, I am able to get the input to my task. ... this from a serial console, ... The real target is not suppose to know about the windshell... ...
    (comp.os.vxworks)