diff --git a/nextcloud-del.py b/nextcloud-del.py index 1d1538a..39a4853 100644 --- a/nextcloud-del.py +++ b/nextcloud-del.py @@ -10,13 +10,13 @@ up = "a" while True: if keyboard.read_key() == delete: x, y = pyautogui.position() - # locatel and press 3 dots - x1, y2 = pyautogui.locateCenterOnScreen("dots.png") + # locatel and edit + x1, y2 = pyautogui.locateCenterOnScreen("edit.png") pyautogui.moveTo(x1, y2) pyautogui.click() - # locate and press bin + # locate and press del sleep(0.2) - x2, y2 = pyautogui.locateCenterOnScreen("bin.png", confidence=0.75) + x2, y2 = pyautogui.locateCenterOnScreen("myCont.png", confidence=0.75) pyautogui.moveTo(x2, y2) pyautogui.click() # move back @@ -24,7 +24,7 @@ while True: if keyboard.read_key() == skip: x, y = pyautogui.position() - pyautogui.moveTo(x, y + 90) + pyautogui.moveTo(x, y + 70) if keyboard.read_key() == up: x, y = pyautogui.position()