{
Button시작:
WinGetPos, winX, winY, winW, winH, %ActiveID%
ImageSearch, oX, oY, winX, winY, winX+winW, winY+winH, *50 %A_ScriptDir%\image\1.png
If ( ErrorLevel = 0)
{
click,%ox%,%oY%
msgbox,찾음1
}
else If ( ErrorLevel = 1)
{
msgbox,못찾음1
}
;=================================================
ImageSearch, oX, oY, winX, winY, winX+winW, winY+winH, *50 %A_ScriptDir%\image\2.png
If ( ErrorLevel = 0)
{
click,%ox%,%oY%
msgbox,찾음2
}
else If ( ErrorLevel = 1)
{
msgbox,못찾음2
}
;=======================================================
ImageSearch, oX, oY, winX, winY, winX+winW, winY+winH, *50 %A_ScriptDir%\image\3.png
If ( ErrorLevel = 0)
{
click,%ox%,%oY%
msgbox,찾음3
}
else If ( ErrorLevel = 1)
{
msgbox,못찾음3
}
;==============================================================
ImageSearch, oX, oY, winX, winY, winX+winW, winY+winH, *50 %A_ScriptDir%\image\4.png
If ( ErrorLevel = 0)
{
click,%ox%,%oY%
msgbox,찾음4
}
else If ( ErrorLevel = 1)
{
msgbox,못찾음4
}
}
return
요렇게 루프돌리려고하는데 이미지 잘찾은데요 1~4번까지 한번씩만 찾고 에러 메세지 뜨네요?
이유가뭔까요?
loop
{
Button시작:
=======================================
Button시작:
loop
{