Does anyone know how to send captured keystrokes to a file? My program can capture keystrokes but I don't know how to send them to a file, so that I can view the captured keystrokes. Please help.
Thanks,
Kevin
Printable View
Does anyone know how to send captured keystrokes to a file? My program can capture keystrokes but I don't know how to send them to a file, so that I can view the captured keystrokes. Please help.
Thanks,
Kevin
Ideally you wouldn't want to append the file everytime a new key was captured, you'd want to buffer them in a String then Append them to the file in blocks.Code:Dim iFile As Integer
iFile = FreeFile
Open "C:\Log.txt" For Append As iFile
Print #iFile, sCapturedKey;
Close iFile
Ok, that works, but it displays the captured keys vertically in the text file. How do I make it display them horizontally?
Thanks,
Kevin
If you included the Semicolon as I did in the Example, it would store the Characters Horizontally.
What is the sCapturedKey varible, is that just an example of the varible where my key strokes are beeing stored? Because, when I use it that it does not work, but if I replace that with the key letter it works?? Why??
Thank A Lot,
Kevin