Computing.Net > Forums > Programming > Empty Keyboard Buffer in batch/VBS

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Empty Keyboard Buffer in batch/VBS

Reply to Message Icon

Name: keridbey
Date: March 24, 2008 at 05:51:48 Pacific
OS: WinXP
CPU/Ram: 1.83 Ghz / 1 Gb
Product: Dell
Comment:

Does anyone know of a way to programmatically clear the keyboard buffer (or temporarily block it from receiving any new keystrokes)? There is a batch file that many people in my office use frequently, and in certain circumstances a standard input prompt changes from the norm; however, the user is used to entering certain information at the normal prompt, so they enter that information instead of reading the prompts, which can lead to problems. The popular idea was to use CHOICE.exe to stop them, but the ear-piercing beep it produces when the user hits a key other than what they should can be heard for quite a distance. I'm just hoping to render what they type for about five seconds moot, either in batch or possibly a VB script.



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: March 24, 2008 at 20:04:34 Pacific
Reply:

I don't think it's possible outside of a third party program.


0

Response Number 2
Name: keridbey
Date: March 25, 2008 at 11:46:32 Pacific
Reply:

Phooey. Ah, well. Thanks anyways!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Empty Keyboard Buffer in batch/VBS

Clearing the keyboard buffer in C www.computing.net/answers/programming/clearing-the-keyboard-buffer-in-c/12971.html

keyboard buffer www.computing.net/answers/programming/keyboard-buffer/2857.html

VB yes no Question in batch www.computing.net/answers/programming/vb-yes-no-question-in-batch/18889.html