diff --git a/sandbox/pynput/sample.py b/sandbox/pynput/sample.py new file mode 100644 index 0000000..07a566f --- /dev/null +++ b/sandbox/pynput/sample.py @@ -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)