Path: csiph.com!aioe.org!wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org.POSTED!not-for-mail From: "R.Wieser" Newsgroups: microsoft.public.scripting.vbscript Subject: Re: Waiting for keypress in a console - I've got problems. Date: Tue, 29 Dec 2020 08:28:41 +0100 Organization: Aioe.org NNTP Server Lines: 18 Message-ID: References: NNTP-Posting-Host: wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.9.2 X-RFC2646: Format=Flowed; Original X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 Xref: csiph.com microsoft.public.scripting.vbscript:12318 Evertjan, > Methinks the budder is only filled with a complete > line, not with a character. That part I understand. But if nothing has been put into the buffer yet, why than does that "Do While Not WScript.StdIn.AtEndOfLine" loop (and thus wait) ? The only thing I can think of is that the AtEndOfLine checks, in case of the keyboard, for a CR. Yet, adding another "WScript.StdIn.Read(1)" below the loop to get rid of that EOL char doesn't help. Regards, Rudy Wieser