Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #12317

Re: Waiting for keypress in a console - I've got problems.

From "R.Wieser" <address@not.available>
Newsgroups microsoft.public.scripting.vbscript
Subject Re: Waiting for keypress in a console - I've got problems.
Date 2020-12-29 08:26 +0100
Organization Aioe.org NNTP Server
Message-ID <rselrh$1mc6$1@gioia.aioe.org> (permalink)
References <rscnqt$346$1@gioia.aioe.org> <16r5zrg9z84r6$.15wakt855zpbm$.dlg@40tude.net>

Show all headers | View raw


JJ,

> That usually caused by input buffer overrun.

In my case that would be rather hard, as I start the (test) script by 
double-clicking it.  Also, all chars you type (upto the 'Enter') are 
displayed - and nothing shows.

> The only workaround I could think of is to use the
> CHOICE tool to indirectly flush the input buffer.

I've never been able to start another console-based program into the context 
of the script currently running. They always get their own console window. 
Which includes their own, seperate input buffers ...

Please advise if I overlooked something though.

> Reading the input buffer one character at a time is too slow.

Being slow is not really a problem, as I'm normally waiting for the user to 
press a/the key.  I just want to make sure that it doesn't lock up when I, 
for whatever reason, redirect StdIn from a file or similar.

Regards,
Rudy Wieser

Back to microsoft.public.scripting.vbscript | Previous | NextPrevious in thread | Find similar


Thread

Waiting for keypress in a console - I've got problems. "R.Wieser" <address@not.available> - 2020-12-28 14:50 +0100
  Re: Waiting for keypress in a console - I've got problems. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-12-28 17:16 +0100
    Re: Waiting for keypress in a console - I've got problems. "R.Wieser" <address@not.available> - 2020-12-28 18:18 +0100
      Re: Waiting for keypress in a console - I've got problems. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-12-29 00:21 +0100
        Re: Waiting for keypress in a console - I've got problems. "R.Wieser" <address@not.available> - 2020-12-29 08:28 +0100
          Re: Waiting for keypress in a console - I've got problems. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-12-29 13:26 +0100
            Re: Waiting for keypress in a console - I've got problems. "R.Wieser" <address@not.available> - 2020-12-29 14:46 +0100
  Re: Waiting for keypress in a console - I've got problems. JJ <jj4public@gmail.com> - 2020-12-29 11:44 +0700
    Re: Waiting for keypress in a console - I've got problems. "R.Wieser" <address@not.available> - 2020-12-29 08:26 +0100

csiph-web