nextcloud test

This commit is contained in:
godot 2023-12-23 00:44:50 +01:00
parent 87023a27bc
commit a17d400ba1

View File

@ -10,13 +10,13 @@ up = "a"
while True: while True:
if keyboard.read_key() == delete: if keyboard.read_key() == delete:
x, y = pyautogui.position() x, y = pyautogui.position()
# locatel and press 3 dots # locatel and edit
x1, y2 = pyautogui.locateCenterOnScreen("dots.png") x1, y2 = pyautogui.locateCenterOnScreen("edit.png")
pyautogui.moveTo(x1, y2) pyautogui.moveTo(x1, y2)
pyautogui.click() pyautogui.click()
# locate and press bin # locate and press del
sleep(0.2) 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.moveTo(x2, y2)
pyautogui.click() pyautogui.click()
# move back # move back
@ -24,7 +24,7 @@ while True:
if keyboard.read_key() == skip: if keyboard.read_key() == skip:
x, y = pyautogui.position() x, y = pyautogui.position()
pyautogui.moveTo(x, y + 90) pyautogui.moveTo(x, y + 70)
if keyboard.read_key() == up: if keyboard.read_key() == up:
x, y = pyautogui.position() x, y = pyautogui.position()