quick fix 2
This commit is contained in:
24
usn.py
Normal file
24
usn.py
Normal file
@ -0,0 +1,24 @@
|
||||
import mouse
|
||||
import keyboard
|
||||
import time
|
||||
|
||||
def get_pos():
|
||||
print(f"{mouse.get_position()}")
|
||||
|
||||
x1 = 913
|
||||
y1 = 492
|
||||
x2 = 996
|
||||
y2 = 608
|
||||
def del1():
|
||||
time.sleep(0.005)
|
||||
mouse.move(x1, y1, absolute=True, duration=0.005)
|
||||
time.sleep(0.005)
|
||||
mouse.click('left')
|
||||
time.sleep(0.005)
|
||||
mouse.move(x2, y2, absolute=True, duration=0.005)
|
||||
time.sleep(0.005)
|
||||
mouse.click('left')
|
||||
|
||||
while True:
|
||||
if keyboard.is_pressed('7'):
|
||||
del1()
|
||||
Reference in New Issue
Block a user