Загрузить новый файл
This commit is contained in:
parent
6171976199
commit
f6e1c7530e
21
autogames/mom.py
Normal file
21
autogames/mom.py
Normal file
|
@ -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)
|
Reference in a new issue