Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Clear keyboard buffer

I have to clear the keyboard buffer, how can i solve this problem.
0 Kudos
Message 1 of 2
(2,776 Views)
Hi,

CVI does not have an specific function to clear the keyboard buffer, usully what you do is when you get the keyboard event you return a value other than 0 to "swallow" the even so that the event does not gets processed.

If you really need to clear the buffer I guess the way to do it will be through writing and reading to memory using the ReadFromPhysicalMemory() and WriteFromPhysicalMemory(). The keyboard buffer will be just a piece of memory in a specific location that you could clear; there may be some old C examples in the internet that you could use.

I hope this helps.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 2
(2,776 Views)