• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 300
  • Last Modified:

Record key strokes?

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
rob2000
Asked:
rob2000
1 Solution
 
khaledcCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now