add reset cursor button
This commit is contained in:
parent
181564d5c3
commit
99923c1ac8
13
yt-del.py
13
yt-del.py
@ -5,7 +5,7 @@ from time import sleep
|
|||||||
|
|
||||||
delete = "d"
|
delete = "d"
|
||||||
skip = "s"
|
skip = "s"
|
||||||
|
up = "a"
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
if keyboard.read_key() == delete:
|
if keyboard.read_key() == delete:
|
||||||
@ -15,8 +15,8 @@ while True:
|
|||||||
pyautogui.moveTo(x1, y2)
|
pyautogui.moveTo(x1, y2)
|
||||||
pyautogui.click()
|
pyautogui.click()
|
||||||
# locate and press bin
|
# locate and press bin
|
||||||
sleep(0.15)
|
sleep(0.2)
|
||||||
x2, y2 = pyautogui.locateCenterOnScreen("bin.png", confidence=0.8)
|
x2, y2 = pyautogui.locateCenterOnScreen("bin.png", confidence=0.75)
|
||||||
pyautogui.moveTo(x2, y2)
|
pyautogui.moveTo(x2, y2)
|
||||||
pyautogui.click()
|
pyautogui.click()
|
||||||
# move back
|
# move back
|
||||||
@ -24,4 +24,9 @@ while True:
|
|||||||
|
|
||||||
if keyboard.read_key() == skip:
|
if keyboard.read_key() == skip:
|
||||||
x, y = pyautogui.position()
|
x, y = pyautogui.position()
|
||||||
pyautogui.moveTo(x, y + 100)
|
pyautogui.moveTo(x, y + 90)
|
||||||
|
|
||||||
|
if keyboard.read_key() == up:
|
||||||
|
x, y = pyautogui.position()
|
||||||
|
pyautogui.moveTo(x, 400)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user