From a17d400ba14344e9319ed200b866d5a48f2bf36d Mon Sep 17 00:00:00 2001 From: godot Date: Sat, 23 Dec 2023 00:44:50 +0100 Subject: [PATCH] nextcloud test --- nextcloud-del.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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()