Skip to content

Instantly share code, notes, and snippets.

@kingjr
Created March 31, 2022 16:19
Show Gist options
  • Select an option

  • Save kingjr/18725e3ac0a178f4b7bf9f41f7933f28 to your computer and use it in GitHub Desktop.

Select an option

Save kingjr/18725e3ac0a178f4b7bf9f41f7933f28 to your computer and use it in GitHub Desktop.

Revisions

  1. kingjr created this gist Mar 31, 2022.
    6 changes: 6 additions & 0 deletions move_cursor.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    from pynput.mouse import Controller
    import time
    mouse = Controller()
    for i in range(10_000_000):
    mouse.move((i % 2)*2-1, 0)
    time.sleep(60.)