Solved

Dumping the keyboard Memory

Posted on 1998-10-10
1
130 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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

777 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