Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keystroke log reader

Status
Not open for further replies.

Anesthaesia

Technical User
Aug 30, 2001
126
GB
Hi All,

I am using some code I found which records keystrokes to a log file.

What I would like to do now is format the log file to make it readable.

An output example would be:

"I needd[BKSPACE] too
[DEL] format the[BKSPACE]is"

Coded keystrokes are [UP][DOWN]
[DEL][BKSPACE][ENTER]

The only way I can think of doing this is to read it in chr by chr, performing the keystrokes as it's read.

Any help would be great.

Cheers,
D​
 
Possibly create the logfile line for line:

[UP]
[UP]
[DOWN]
[DOWN]





[A]
[SELECT]
[START]

Then read it in using:

open "mylogfilepath" for input as #1
Do while not EOF(1)
Line input #1, strKeystroke
'Do what you will here with strKeystroke
Loop
close #1


Please note you can use the above format to get 30 lives in the game Contra on the old grey box Nintendo.
(Sorry it is early and I am a little wacky today)

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top