How do i record keys, their press times and the times elapsed between presses?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
mexican scientist
Posts: 33
Joined: 02 Jul 2020, 21:55

How do i record keys, their press times and the times elapsed between presses?

25 Jan 2023, 01:20

For example. Suppose I press "a" for 150 ms, then wait for 1500 ms and press "b" for 200 ms and wait 5000 ms, etc... I want to record any key that is being pressed and save the information to a file in the desktop with path: "C:\Users\user\Desktop\eso_path.txt" The format of the file should be: "key, time press, elapsed time between key presses" or like this

Code: Select all

a, 150, 1500
b, 200, 5000
c, 163, 3452
etc...
I am asking these questions to an AI called Chatgpt, but it is unable to understand my question. Basically, I want to record my hand pressing the keys with exact press time, and elapsed time between key presses. The AI was unable to help, maybe a human can understand me. Thank you!
User avatar
mikeyww
Posts: 27191
Joined: 09 Sep 2014, 18:38

Re: How do i record keys, their press times and the times elapsed between presses?

25 Jan 2023, 06:19

I'm not sure whether this forum supports scripts for key logging, but I've seen other posts that do provide some solutions & approaches to it.

viewtopic.php?p=492842#p492842
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: How do i record keys, their press times and the times elapsed between presses?

25 Jan 2023, 07:55

the encoding schema is nonsense. what happens when u hold one key and press another while still holding the first one
as for the rest of the question, use InputHook with {All}(or whichever keys ure interested in) and the .OnKeyDown/Up callbacks defined

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: cgx5871 and 165 guests