import imagesearch
import pyautogui as pag
# ๋ณ์์ด๊ธฐํ
found_img = 0
# mouse position
# while True:
# print(pag.position())
# mouseX = input("๋ง์ฐ์ค x ์ขํ ์
๋ ฅ")
# mouseY = input("๋ง์ฐ์ค y ์ขํ ์
๋ ฅ")
# ํ๋ก๊ทธ๋จ์์
while True:
print("Start seeking..")
p_list = pag.locateAllOnScreen("./image1.png")
p_list = list(p_list)
print(p_list)
if len(p_list) == 0 : # ์ ์ฒด ํ๋ฉด์์์ ์ฐพ๋ ์ด๋ฏธ์ง๊ฐ ์๋ ๊ฒฝ์ฐ
print("์ด๋ฏธ์ง ์์")
else:
print("์ด๋ฏธ์ง ์ฐพ์")
pag.moveTo(385, 475)
pag.click()
'๐ํ๋ก๊ทธ๋๋ฐ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[ํ์ด์ฌ] win32com outlook ์๋ ๋ฉ์ผ ์ฒ๋ฆฌ (0) | 2022.03.04 |
---|---|
[ํ์ด์ฌ] Request ๋ชจ๋ ์์ธ์ฒ๋ฆฌ ๋ฆฌ์คํธ (0) | 2021.04.20 |
[ํ์ด์ฌ] request ๋ชจ๋ SSLError ์๋ฌ ํด๊ฒฐ๋ฐฉ๋ฒ (0) | 2021.04.20 |
[์๋ฐ์คํฌ๋ฆฝํธ] ๋ฐ์ค ์ข ๋ฅ (0) | 2020.04.29 |
[ํ์ด์ฌ] ์คํธ๋ง ํ์ฑ ๋น๊ต (0) | 2019.11.28 |