Solved

Record key strokes?

Posted on 1998-07-07
1
289 Views
Last Modified: 2010-05-03
Hello,
I am wondering how I would go about recording all key strokes typed while my program would be running in the background (tsr?)
Any help at all would be great.

==Rob
0
Comment
Question by:rob2000
1 Comment
 
LVL 1

Accepted Solution

by:
khaledc earned 10 total points
ID: 1465179
First you have to know which form has the focus, then under the event sub "KeyPress" you can tell which Ascii character has been pressed, the following is an example:
Private Sub Form_KeyPress(KeyAscii As Integer)
    MsgBox chr$(KeyAscii)
End Sub
To try this example, paste the code into the decleration part of a Form and then Press F5.
Regards
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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 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…

840 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