This repository has been archived on 2022-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
b-content/autogames/nogames.py
2021-12-01 20:39:05 +00:00

22 lines
466 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from pynput.mouse import Button, Controller
import os
import time
mouse = Controller()
while True:
c = mouse.position
print(c)
if c[0] > 500 and c[0] < 560 and c[1] > 1030:
print("РУКИ УБРАЛ!")
os.system("notify-send 'РУКИ НА СТОЛ!' --icon=dialog-information")
mouse.position = (c[0] - 20, c[1] - 20)
for i in range(5000):
mouse.position = (c[0] - 20, c[1] - 20)
print(i)