|
-
Feb 25th, 2000, 12:53 AM
#1
Thread Starter
Member
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
-
Feb 25th, 2000, 03:39 AM
#2
Code:
Dim iFile As Integer
iFile = FreeFile
Open "C:\Log.txt" For Append As iFile
Print #iFile, sCapturedKey;
Close iFile
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.
-
Feb 25th, 2000, 07:46 AM
#3
Thread Starter
Member
Ok, that works, but it displays the captured keys vertically in the text file. How do I make it display them horizontally?
Thanks,
Kevin
-
Feb 25th, 2000, 11:04 AM
#4
If you included the Semicolon as I did in the Example, it would store the Characters Horizontally.
-
Feb 25th, 2000, 02:28 PM
#5
Thread Starter
Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|