0

All I'm trying to do is move from one place on the screen to another, as a human would do, but very quickly... My code looks like this & doesn't seem to work

from pyclick import HumanClicker
hc = HumanClicker()
hc.move((500, 500), 0.04)

Is there anything I'm doing wrong? I've looked at some posts: this & this They both don't help my issue. if anyone knows the solution, please tell me...

1 Answers1

1

HumanClicker generates a Bezier curve with 100 points to go from your start to your end. It sleeps between each point for your time period divided by the number of points, which in your case would be 0.0004s, which is below the scheduling threshold. That means you're going to delay for 100 scheduling intervals, which is a pretty long time.

If you want to move the mouse to a point, just use

        pyautogui.moveTo(point)

You CAN create your own HumanCurve instance and specify fewer points, and then pass that to move.

Tim Roberts
  • 48,973
  • 4
  • 21
  • 30