• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 296
  • 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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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