카테고리 없음

[파이썬 02] python - pyautogui 이미지캡처 / hotkey / typewrite / press 자동화 매크로

working for you 2019. 9. 3. 10:03
반응형

import cv2
import pyautogui
import time

x, y = pyautogui.locateCenterOnScreen('1.png', confidence= 0.9)
pyautogui.click(x, y)
time.sleep(2)

pyautogui.hotkey('alt','d')
time.sleep(1)

pyautogui.typewrite('http://*')
time.sleep(0.5)
pyautogui.press('enter')
time.sleep(1)

pyautogui.press('tab')
pyautogui.typewrite('*')
time.sleep(0.5)
pyautogui.press('enter')

반응형