Search code examples
pythonmouseeventpyautogui

How to automate fast mouse drag in Python?


I've tried to automate mouse drag with pyautogui by launching this code:

 pyautogui.dragTo(1900, 500, 0.1, button='left')

But instead of performing it with 0.1 seconds it takes much longer. How to automate mouse drag with high velocity? Maybe fix something with pyautogui or anyone knows another lib?


Solution

  • I have tried the code, and it seems instantaneous, you might try pyautogui.dragTo(1900, 500, 0, button='left')