Skip to content

Commit

Permalink
Add sample.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroyuki-komatsu committed Feb 18, 2024
1 parent b7066fc commit b6faeee
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions sandbox/pynput/sample.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Sample code for pynput
# https://pypi.org/project/pynput/
#
# pip3 install pynput
# python3 sample.py

import pynput
import time

mouse = pynput.mouse.Controller()

mouse.position = (131, 44)

while True:
print(mouse.position)
time.sleep(1)

0 comments on commit b6faeee

Please sign in to comment.