Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import pyautogui
  2. incadrare_pictograma = pyautogui.locateOnScreen('imagine.png')#, confidence = 0.4)
  3. pyautogui.confidence = 50
  4. print(incadrare_pictograma)
  5. (x,y,orez,vert) = pyautogui.locateOnScreen('imagine.png')#, confidence = 0.4)
  6.  
  7. pyautogui.moveTo(x + orez / 2, y + vert / 2)
  8. pyautogui.mouseDown()
  9. pyautogui.moveRel(300,200,4)
  10. pyautogui.moveRel(400,100,2)
  11. pyautogui.mouseUp()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement