nextcloud done

This commit is contained in:
godot 2023-12-23 01:39:51 +01:00
parent 8f6f59ff23
commit b936862105

View File

@ -4,30 +4,39 @@ from time import sleep
#needs opencv-python, keyboard, pyautogui (installed by pip) #needs opencv-python, keyboard, pyautogui (installed by pip)
delete = "d" delete = "d"
skip = "s" #skip = "s"
up = "a" #up = "a"
pyautogui.moveTo(250, 250)
while True: while True:
if keyboard.read_key() == delete: if keyboard.read_key() == delete:
x, y = pyautogui.position() x, y = pyautogui.position()
pyautogui.click()
# locatel and edit # locatel and edit
sleep(0.5)
x1, y2 = pyautogui.locateCenterOnScreen("edit.png") x1, y2 = pyautogui.locateCenterOnScreen("edit.png")
pyautogui.moveTo(x1, y2) pyautogui.moveTo(x1, y2)
pyautogui.click() pyautogui.click()
# locate and press del # locate and press del
sleep(0.2) sleep(0.5)
x2, y2 = pyautogui.locateCenterOnScreen("myCont.png", confidence=0.75) x2, y2 = pyautogui.locateCenterOnScreen("myCont.png", confidence=0.7)
pyautogui.moveTo(x2, y2) pyautogui.moveTo(x2, y2)
pyautogui.click() pyautogui.click()
pyautogui.press("enter") pyautogui.press("enter")
# save
sleep(0.5)
x3, y3 = pyautogui.locateCenterOnScreen("save.png", confidence=0.9)
pyautogui.moveTo(x3, y3)
pyautogui.click()
# move back # move back
pyautogui.moveTo(x, y) pyautogui.moveTo(x, y)
if keyboard.read_key() == skip: # if keyboard.read_key() == skip:
x, y = pyautogui.position() # x, y = pyautogui.position()
pyautogui.moveTo(x, y + 70) # pyautogui.moveTo(x, y + 50)
#
if keyboard.read_key() == up: # if keyboard.read_key() == up:
x, y = pyautogui.position() # x, y = pyautogui.position()
pyautogui.moveTo(x, 400) # pyautogui.moveTo(x, 400)
#