Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keyboard Buffer - How do I flush it out? 2

Status
Not open for further replies.

emaduddeen

Programmer
Mar 22, 2007
184
US
Hi Everyone,

Can you tell me how to flush out all characters that are in the keyboard buffer?

Thanks,
Emad
 
Hi ShankarJ,

Tried it but it did not seem to remove the enter key which I put in to the buffer.

I originally stuffed the buffer using PressKey (EnterKey).

Truly,
Emad
 
It should've worked,
but maybe you're more interested in
SetKeyCode(0)

HTH,
Mark
 
Hi Everyone,

Your codes work. It was a problem on my end. My code was a bit wrong so I had to add a flag to prevent the code from executing twice.

Thanks.
Emad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top