|
-
Jun 5th, 2000, 12:42 AM
#1
Thread Starter
Hyperactive Member
can someone show me how to log k when the k button is pressed using the constant's from constant.txt this way I can create one for each key easily. Thanks.
-RaY
VB .Net 2010 (Ultimate)
-
Jun 5th, 2000, 12:44 AM
#2
Addicted Member
You could use the forms KeyPress event?
-
Jun 5th, 2000, 01:03 AM
#3
Thread Starter
Hyperactive Member
I know that part
in the event form key press even...
what would i write
for example would i have to open the \flag\log\key.log file before i write to it...even if i didnt how would i go about that...how would i get the program to realize im pressing "k"....got what i mean?
-RaY
VB .Net 2010 (Ultimate)
-
Jun 5th, 2000, 08:54 AM
#4
PowerPoster
Hi fallnwrld, Is you want your program always write a log file when a buddy have press the "k" button?
Then I think JasonGS was answer most of your question.
and all you need is just open the specified log file and jot down the events data and time as...
Code:
Open App.Path & "\flag\log.log" For Append As #1
Print #1, "[" & Format(Date, "dd/mm/yyyy") & " " & Format(Time, "h:mm:ss AMPM") & "] key k was press by user."
Close #1
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
|