Loop
{
?gosub, SER4
?break
}
return
SER4:
ImageSearch,vx,vy, 0,0, A_ScreenWidth, A_ScreenHeight, *50 senaR4.png
IF ErrorLevel = 0
{
?vx:=vx+5
?vy:=vy+5
?CoordMode, MOUSE, Relative
?MouseClick, left, %vx%,%vy%
?sleep 5000
}
IF ErrorLevel = 1
{
?Sleep 10000
?gosub, SER41
}
return
SER41:
ImageSearch,vx,vy, 0,0, A_ScreenWidth, A_ScreenHeight, *50 senaR41.png
IF ErrorLevel = 0
{
?vx:=vx+5
?vy:=vy+5
?CoordMode, MOUSE, Relative
?MouseClick, left, %vx%,%vy%
?sleep 5000
}
IF ErrorLevel = 1
{
?Sleep 10000
?gosub, SER4
}
return
계속 못찾을시 문제가 됩니다. 아마도 스레드 중첩으로 스크립트가 종료 될거에요.