Solved

Record key strokes?

Posted on 1998-07-07
1
284 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

708 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

13 Experts available now in Live!

Get 1:1 Help Now