Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pyautogui
- incadrare_pictograma = pyautogui.locateOnScreen('imagine.png')#, confidence = 0.4)
- pyautogui.confidence = 50
- print(incadrare_pictograma)
- (x,y,orez,vert) = pyautogui.locateOnScreen('imagine.png')#, confidence = 0.4)
- pyautogui.moveTo(x + orez / 2, y + vert / 2)
- pyautogui.mouseDown()
- pyautogui.moveRel(300,200,4)
- pyautogui.moveRel(400,100,2)
- pyautogui.mouseUp()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement