gosub,Act
loop,
{
????? gosub,Start
????? gosub,Detect
????? gosub,Get
}
(내용~~~~~솰라솰라)
Start:
loop,
{
????? imagesearch,StartX,StartY,0,0,Width,Height,*50 start.png
????? if errorlevel = 0
????? {
??????????? loop,
??????????? {
???????????????? imagesearch,StartX,StartY,0,0,Width,Height,*50 start.png
????????????????? if errorlevel = 0
????????????????? {
??????????????????????? mouseclick,left,StartX,StartY
???????????????????????? sleep,1500
????????????????? }
????????????????? if errorlevel = 1
????????????????? {
??????????????????????? break
????????????????? }
??????????? }
??????????? break
????? }
}
return
Detect:
loop,
{
????? imagesearch,JJiX,JJiY,0,0,Width,Height,*100 jji.png
????? if errorlevel = 0
????? {
??????????? break
????? }
?????? imagesearch,JJiX,JJiY,0,0,Width,Height,*100 jji.png
????? if errorlevel = 1
????? {
??????????? mouseclick,left,JJiX,JJiY
??????????? break
????? }
}
return
Get:
loop,
{
????? imagesearch,JJi1X,JJi1Y,0,0,Width,Height,*100 jji1.png
????? if errorlevel = 0
????? {
??????????? break
????? }
?????? imagesearch,JJi1X,JJi1Y,0,0,Width,Height,*100 jji1.png
????? if errorlevel = 1
????? {
??????????? mouseclick,left,JJi1X,JJi1Y
??????????? break
????? }
}
return
gosub, start에서 시작해서 start 를 끝으로 loop 이 적용 되는것 같아욤
detect 랑 get 랑 인식이 안 되는데 이거 왜 이러는지..
이미지는 정확합니다..
loop,
{
imagesearch,StartX,StartY,0,0,Width,Height,*50 start.png
if errorlevel = 0
{
loop,
{
imagesearch,StartX,StartY,0,0,Width,Height,*50 start.png
if errorlevel = 0
{
mouseclick,left,StartX,StartY
sleep,1500
}
if errorlevel = 1
{
break
}
}
break
}
}
이미지 못찾으면 무한루프임...
그리고.. 에러레벨 ... 1 위에 같은 이미지서치가...있을 이유가없음...