Solved

Dumping the keyboard Memory

Posted on 1998-10-10
1
128 Views
Last Modified: 2010-04-30
How do i dump the keyboard memory... I have a game that works with the kepress event and if the player holds down a key for a couple secondes then lets go the built up key strokes still make events after they have stopped pushing the keys. I would like to dump the Key Board memory after every key stoke so that their arn't excess strokes generated.
0
Comment
Question by:hess
1 Comment
 
LVL 3

Accepted Solution

by:
kfrick earned 20 total points
ID: 1439205
Real easy:

Sub ClearKeys
   While inkey$<>""
   Wend
End Sub

Now just call ClearKeys in each Keypress event you process.

Good Luck!
-kf


0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now