atbswp icon indicating copy to clipboard operation
atbswp copied to clipboard

Record the relative time intervals between each key press

Open whoyawn opened this issue 3 years ago • 3 comments

Checklist

  • [x] I use the latest release of atbswp
  • [x] The issue is not existing yet

Verbose log

PASTE VERBOSE LOG HERE

Miscellaneous information

Operating System

Windows 10

Desktop Environment/Window Manager

Write here

Python version

3.9

Description

Currently, each keypress has a consistent delay in between and I'm trying to find a way to record the exact time in between them.

For example, if the script generated could look like this:

pyautogui.moveTo(2586, 674)
pyautogui.mouseDown(2531, 466, 'left')
pyautogui.mouseUp(2531, 466, 'left')
time.sleep(1)
pyautogui.keyDown('enter')
pyautogui.keyUp('enter')
pyautogui.keyDown('enter')
timer.sleep(.234) # DELAY
pyautogui.keyUp('enter')
timer.sleep(.333) # DELAY
pyautogui.keyDown('e')
pyautogui.keyDown('n')

It seems like the easiest way to do this would be to set a timer in between each record call, but if there's an easier way to do this, let me know.

whoyawn avatar Feb 01 '21 00:02 whoyawn

also muose movement speed will be great! thanks for your work

borderline23 avatar Aug 12 '21 08:08 borderline23

It looks like maybe this has been added?

I see things like "time.sleep(1)" and (2) in my scripts. Full-second delays are maybe not as granular as OP was hoping for, but it looks like there is support for it now.

bmn001 avatar May 18 '22 16:05 bmn001

Yes, you're right. It was solved, and even made more accurate with #85 but since that commit has been merged, no release was made. I'll close the issue after making the release.

RMPR avatar May 18 '22 19:05 RMPR