Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed replay #37

Open
jetpack001 opened this issue Nov 8, 2020 · 14 comments
Open

Speed replay #37

jetpack001 opened this issue Nov 8, 2020 · 14 comments

Comments

@jetpack001
Copy link

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

Ubuntu 18.04

Desktop Environment/Window Manager

Gnome 3.28

Python version

Write here

Description

Everything works fine but i can't find out how to replay the capture at the same speed as i record, not faster.

@RMPR
Copy link
Owner

RMPR commented Nov 11, 2020

Can give more details? What do you feel is faster: the mouse or the keyboard?

@jetpack001
Copy link
Author

mouse, i use it for a game and every click has to be precise at a certain time but when it clicks its too fast and rutine fails

@RMPR
Copy link
Owner

RMPR commented Nov 13, 2020

Turns out the granularity is something I defined as a constant in the code. in the next update I'll expose that setting to users. If you don't want to wait, you can modify in the source code directly. Relevant line

self.mouse_sensibility = 21

@jetpack001
Copy link
Author

jetpack001 commented Nov 13, 2020

found the line but i don't know what value should i put to be fine, kinda newbie into that.

@RMPR
Copy link
Owner

RMPR commented Nov 13, 2020 via email

@jetpack001
Copy link
Author

ok, ill try. thank you

@whoyawn
Copy link

whoyawn commented Jan 29, 2021

Piggybacking off this, where would be the best place to write delays between key presses? I'm also trying to record exact timings.

@RMPR
Copy link
Owner

RMPR commented Jan 30, 2021 via email

@whoyawn
Copy link

whoyawn commented Jan 30, 2021

Yes, that is correct. 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.

@RMPR
Copy link
Owner

RMPR commented Jan 31, 2021

Okay, please create a new issue for this, feel free to add any other detail you might find relevant.

@paomontes
Copy link

Hello RMPR,
First excellent work,

Second i have a question,
I want to make the playback faster, the mouse and keyboard, can you suggest me how to do it?

I undestand that in control play i have to change the value of the next line to have a faster mouse playback and the keyboard?

control.py
Line 121 in
self.mouse_sensibility = 21

Thanks in advance for your advice,
Have a nice day,
Paola.

@RMPR
Copy link
Owner

RMPR commented Feb 15, 2022

I undestand that in control play i have to change the value of the next line to have a faster mouse playback and the keyboard?

control.py Line 121 in self.mouse_sensibility = 21

increasing this value will make you have a faster mouse playback, for the keyboard it's a bit more complicated than that. If you don't want to fiddle with the code just for that, you can create an issue to expose this setting to end-users, I'll have a look when I'll have more bandwidth.

@scainburger
Copy link

I changed the timeout = int(b - self.last_time) lines to cast to float() instead, as well as adding a pyautogui.PAUSE = 0 line after imports. Not perfect (I suspect due to some minor inaccuracies with Python's sleep function) but much more accurate in regards to recording proper delays between actions.

@RMPR
Copy link
Owner

RMPR commented Mar 8, 2022

Seems like a good idea, I can definitely accept a PR about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants