Gui, add, text, x30 y5 w110 h20, 자동사냥
gui, add, text, x60 y25 w50 h20 vA, 준비
gui, add, text, x60 y50 w50 h20 vB, 0회
Gui, add, button, x20 y80 w110 h20, 시작
Gui, add, button, x20 y110 w110 h20, 종료
gui, show
매크로시작 := false
return
Button시작:
{
Gui,submit,nohide
Guicontrol, , A, 시작
매크로시작 := true
coordmode, pixel, screen
coordmode, mouse, screen
클리어횟수 := 0
Loop
{
ImageSearch, FoundX, FoundY, 1, 1, A_Screenwidth, A_Screenheight, *10 %A_ScriptDir%\Image\유령선.BMP
if (ErrorLevel = 0)
{
send {click %foondX% %foundY%}
sleep, 1000
}
ImageSearch, FoundX, FoundY, 1, 1, A_Screenwidth, A_Screenheight, *10 %A_ScriptDir%\Image\공격.BMP
if (ErrorLevel = 0)
{
send {click %FoondX% %FoundY%}
sleep, 1000
}
ImageSearch, FoundX, FoundY, 1, 1, A_Screenwidth, A_Screenheight, *10 %A_ScriptDiR%\Image\출항.BMP
if (ErrorLevel = 0)
{
Send {click %FoondX% %FoundY%}
Sleep, 1000
클리어횟수 := 클리어횟수 + 1
Gui,submit,nohide
GuiControl, , B, %클리어횟수% 회
}
if(매크로시작 = false)
{
break
}
}
}
return
이미지도 제대로 못찾고 광클되네요 ㅜㅜ