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.
Printable View
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.
You could use the forms KeyPress event?
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?
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