From f6e1c7530e1e0e9c071f71ea1ad54ab4fdba1c93 Mon Sep 17 00:00:00 2001 From: def <8384198-dettlaff@users.noreply.gitlab.com> Date: Wed, 1 Dec 2021 20:38:46 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D0=BD=D0=BE=D0=B2=D1=8B=D0=B9=20=D1=84=D0=B0?= =?UTF-8?q?=D0=B9=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- autogames/mom.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 autogames/mom.py diff --git a/autogames/mom.py b/autogames/mom.py new file mode 100644 index 0000000..0cfc9af --- /dev/null +++ b/autogames/mom.py @@ -0,0 +1,21 @@ +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)