제가 매크로를 짰는데 매크로지식이 부족하여
각각 지정포인트마다 라벨을 붙여서
이미지인식하고
성공하면 1번
실패하면 2번
으로가게해서 매크로를 짰는데요
여기서 매크로 돌리다가
팅기거나 핸드폰으로 확인차 접속하면 세나가
팅기게 되는데
팅기거나
다른기기에서 접속했다고 뜨면
실행하던 스크립트 순서를 무시하고
다른 명령어를 실행하고 싶은데
어떤방법으로 스크립트를 짜야 그렇게 작동될까요?
네이버에 처보니까 비슷한 명령어로 크리티컬이 있던데
제 머리속에선 그 명령어로 그렇게 짤수가없네요..
혹시 자라나는 새싹을 살려주실 고수분 답변부탁드려요..
아래는 오류투성이인 제 세나 매크로 스크립트..ㅠㅠ
?
?
?
?
F1::
매크로시작:
ImageSearch,vx,vy,1,1,1920,1080,*80 모험.png
if errorlevel=0
{
goto, 작은해피1성30
}
if errorlevel=1
{
goto, 매크로시작
sleep 1000
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ작은해피1성30
작은해피1성30:
ImageSearch,vx,vy,1,1,1920,1080,*80 작은해피1성30.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1610,307
sleep,1000
goto, 해피영웅관리
}
if errorlevel=1
{
goto, 작은해피2성30
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ작은해피2성30
작은해피2성30:
ImageSearch,vx,vy,1,1,1920,1080,*80 작은해피2성30.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1610,307
sleep,1000
goto, 해피영웅관리
}
if errorlevel=1
{
goto, 작은바론2성30
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ작은바론2성30
작은바론2성30:
ImageSearch,vx,vy,1,1,1920,1080,*80 작은바론2성30.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1610,307
sleep,1000
goto, 바론영웅관리
}
if errorlevel=1
{
goto, 작은아론2성30
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ작은아론2성30
작은아론2성30:
ImageSearch,vx,vy,1,1,1920,1080,*80 작은아론2성30.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1610,307
goto, 아론영웅관리
}
if errorlevel=1
{
goto, 모험시작
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ해피영웅관리
해피영웅관리:
ImageSearch,vx,vy,1,1,1920,1080,*80 영웅관리.png
if errorlevel=0
{
goto, 해피영웅관리검색1
sleep,1000
}
if errorlevel=1
{
goto, 해피영웅관리
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ해피영웅관리검색1ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ해피검색부분
해피영웅관리검색1:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰해피1성1.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 해피교체
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,180,10
click up
sleep,500
goto, 해피영웅관리검색2
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ해피영웅관리검색2
해피영웅관리검색2:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰해피1성1.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 해피교체
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,180,10
click up
sleep,500
goto, 해피영웅관리검색3
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ해피영웅관리검색3
해피영웅관리검색3:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰해피1성1.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 해피교체
}
if errorlevel=1
{
goto, 해피뒤로가기
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ해피 뒤로가기
해피뒤로가기:
MouseClick,left,1900,400
MouseClick,left,1446,44
sleep,1000
goto, 2성해피검색시작
2성해피검색시작:
ImageSearch,vx,vy,1,1,1920,1080,*80 모험.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,1605,303
sleep,1000
goto, 해피영웅관리검색4
}
if errorlevel=1
{
goto, 2성해피검색시작
sleep,1000
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ해피영웅관리검색4 - 2성해피검색
해피영웅관리검색4:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰해피2성1.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 해피교체
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,150,10
click up
sleep,500
goto, 해피영웅관리검색5
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ해피영웅관리검색5 - 2성해피검색
해피영웅관리검색5:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰해피2성1.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 해피교체
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,150,10
click up
sleep,500
goto, 해피영웅관리검색6
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ해피영웅관리검색6 - 2성해피검색
해피영웅관리검색6:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰해피2성1.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 해피교체
}
if errorlevel=1
{
goto, 해피교체실패
sleep,1000
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ해피교체실패
해피교체실패:
MouseClick,left,1900,400
mouseclick,left,1446,44
sleep,1000
goto, 해피교체실패2
해피교체실패2:
ImageSearch,vx,vy,1,1,1920,1080,*80 모험.png
if errorlevel=0
{
goto, 작은바론2성30
sleep,1000
}
if errorlevel=1
{
goto, 해피교체실패
sleep, 1000
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ해피교체
해피교체:
ImageSearch,vx,vy,1,1,1920,1080,*80 팀배치.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,1864,302
sleep,1000
goto, 해피교체클릭
}
if errorlevel=1
{
sleep, 2000
goto, 해피교체
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ해피교체클릭
해피교체클릭:
ImageSearch,vx,vy,1,1,1920,1080,*80 영웅관리.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,1519,105
sleep,2000
goto, 해피끝
}
if errorlevel=1
{
sleep, 2000
goto, 해피교체클릭
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ해피끝
해피끝:
ImageSearch,vx,vy,1,1,1920,1080,*80 작은해피1성1-1.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,1447,43
sleep,2000
goto, 바론찾아가기
}
if errorlevel=1
{
sleep, 2000
goto, 해피끝2
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ해피끝2
해피끝2:
ImageSearch,vx,vy,1,1,1920,1080,*80 작은해피2성1-1.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,1447,43
sleep,1000
goto, 바론찾아가기
}
if errorlevel=1
{
mouseclick,left,1519,104
sleep, 1000
goto, 해피끝
}
바론찾아가기:
ImageSearch,vx,vy,1,1,1920,1080,*80 모험.png
if errorlevel=0
{
goto, 작은바론2성30
}
if errorlevel=1
{
goto, 바론찾아가기
sleep, 1000
}
?
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ바론교체부분
바론영웅관리:
ImageSearch,vx,vy,1,1,1920,1080,*80 영웅관리.png
if errorlevel=0
{
goto, 바론영웅관리검색1
}
if errorlevel=1
{
goto, 바론영웅관리
sleep,1000
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ바론영웅관리검색1
바론영웅관리검색1:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰바론2성1.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 바론교체
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,150,10
click up
sleep,500
goto, 바론영웅관리검색2
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ바론영웅관리검색2
바론영웅관리검색2:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰바론2성1.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 바론교체
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,150,10
click up
sleep,500
goto, 바론영웅관리검색3
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ바론영웅관리검색3
바론영웅관리검색3:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰바론2성1.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 바론교체
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,150,10
click up
sleep,500
goto, 바론영웅관리검색6
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ바론영웅관리검색6 - 2성해피검색
바론영웅관리검색6:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰바론2성1.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 바론교체
}
if errorlevel=1
{
goto, 바론교체실패
sleep,1000
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ바론교체실패
바론교체실패:
MouseClick,left,1900,400
mouseclick,left,1446,44
sleep,1000
goto, 바론교체실패2
바론교체실패2:
ImageSearch,vx,vy,1,1,1920,1080,*80 모험.png
if errorlevel=0
{
goto, 작은아론2성30
}
if errorlevel=1
{
goto, 바론교체실패2
sleep, 1000
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ바론교체
바론교체:
ImageSearch,vx,vy,1,1,1920,1080,*80 팀배치.png
if errorlevel=0
{
sleep,1000
MouseClick,left,1900,400
mouseclick,left,1864,302
goto, 바론교체클릭
}
if errorlevel=1
{
sleep, 1000
goto, 바론교체
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ바론교체클릭
바론교체클릭:
ImageSearch,vx,vy,1,1,1920,1080,*80 영웅관리.png
if errorlevel=0
{
sleep,1000
MouseClick,left,1900,400
mouseclick,left,1519,155
goto, 바론끝
}
if errorlevel=1
{
sleep, 1000
goto, 바론교체클릭
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ바론끝
바론끝:
ImageSearch,vx,vy,1,1,1920,1080,*80 작은바론2성1-1.png
if errorlevel=0
{
sleep,1000
MouseClick,left,1900,400
mouseclick,left,1447,43
goto, 바론뒤로가기
}
if errorlevel=1
{
sleep, 1000
goto, 바론끝
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ바론뒤로가기
바론뒤로가기:
ImageSearch,vx,vy,1,1,1920,1080,*80 모험.png
if errorlevel=0
{
sleep,1000
goto, 작은아론2성30
}
if errorlevel=1
{
sleep,1000
goto, 바론뒤로가기
}
?
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ아론
아론영웅관리:
ImageSearch,vx,vy,1,1,1920,1080,*80 영웅관리.png
if errorlevel=0
{
goto, 아론영웅관리검색1
}
if errorlevel=1
{
goto, 아론영웅관리
sleep,1000
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ아론영웅관리검색1
아론영웅관리검색1:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰아론2성1.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 아론교체
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,180,10
click up
sleep,500
goto, 아론영웅관리검색2
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ아론영웅관리검색2
아론영웅관리검색2:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰아론2성1.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 아론교체
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,180,10
click up
sleep,500
goto, 아론영웅관리검색3
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ아론영웅관리검색3
아론영웅관리검색3:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰아론2성1.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 아론교체
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,180,10
click up
sleep,500
goto, 아론영웅관리검색4
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ아론영웅관리검색4
아론영웅관리검색4:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰아론2성1.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 아론교체
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,180,10
click up
sleep,500
goto, 아론영웅관리검색6
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ아론영웅관리검색6
아론영웅관리검색6:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰아론2성1.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 아론교체
}
if errorlevel=1
{
goto, 아론교체실패
sleep,1000
}
?
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ아론교체실패
아론교체실패:
sleep,1000
MouseClick,left,1900,400
mouseclick,left,1446,44
sleep,1000
goto, 아론교체실패2
아론교체실패2:
ImageSearch,vx,vy,1,1,1920,1080,*150 모험.png
if errorlevel=0
{
goto, 모험시작
}
if errorlevel=1
{
sleep, 1000
goto, 아론교체실패2
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ아론교체
아론교체:
ImageSearch,vx,vy,1,1,1920,1080,*80 팀배치.png
if errorlevel=0
{
sleep,1000
MouseClick,left,1900,400
mouseclick,left,1864,302
goto, 아론교체클릭
}
if errorlevel=1
{
sleep, 1000
goto, 아론교체
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ아론교체클릭
아론교체클릭:
ImageSearch,vx,vy,1,1,1920,1080,*80 영웅관리.png
if errorlevel=0
{
sleep,1000
MouseClick,left,1900,400
mouseclick,left,1515,207
goto, 아론끝
}
if errorlevel=1
{
sleep, 1000
goto, 아론교체클릭
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ아론끝
아론끝:
ImageSearch,vx,vy,1,1,1920,1080,*80 작은아론2성1-1.png
if errorlevel=0
{
sleep,1000
MouseClick,left,1900,400
mouseclick,left,1447,43
goto, 아론뒤로가기
}
if errorlevel=1
{
sleep, 1000
goto, 아론끝
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ아론뒤로가기
아론뒤로가기:
ImageSearch,vx,vy,1,1,1920,1080,*80 모험.png
if errorlevel=0
{
sleep,1000
goto, 모험시작
}
if errorlevel=1
{
sleep,1000
goto, 아론뒤로가기
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ아론
?
?
?
?
?
?
해피팔기스캔:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰해피1성30.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 해피팔기
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,150,10
click up
sleep,500
goto, 해피팔기스캔2
}
해피팔기스캔2:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰해피1성30.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 해피팔기
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,150,10
click up
sleep,500
goto, 해피팔기스캔3
}
?
해피팔기스캔3:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰해피1성30.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 해피팔기
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,150,10
click up
sleep,500
goto, 해피팔기스캔4
}
?
해피팔기스캔4:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰해피1성30.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 해피팔기
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,150,10
click up
sleep,500
goto, 해피팔기스캔5
}
?
해피팔기스캔5:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰해피1성30.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 해피팔기
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,150,10
click up
sleep,500
goto, 해피팔기스캔6
}
해피팔기스캔6:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰해피1성30.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 해피팔기
}
if errorlevel=1
{
goto, 해피팔기실패
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ해피팔기실패111111111111111111111111111111111111
해피팔기실패:
MouseClick,left,1900,400
mouseclick,left,1446,44
sleep,1000
goto, 해피팔기실패2
해피팔기실패2:
ImageSearch,vx,vy,1,1,1920,1080,*80 모험.png
if errorlevel=0
{
goto, 해피팔기후모험
}
if errorlevel=1
{
goto, 해피팔기실패2
sleep, 1000
}
해피팔기후모험:
ImageSearch,vx,vy,1,1,1920,1080,*80 모험.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1615,300
sleep 1000
goto, 해피판후영웅꽉참
}
if errorlevel=1
{
goto, 해피팔기후모험
}
해피판후영웅꽉참:
ImageSearch,vx,vy,1,1,1920,1080,*80 영웅관리.png
if errorlevel=0
{
sleep 1000
goto, 바론팔기스캔
}
if errorlevel=1
{
goto, 해피판후영웅꽉참
}
?
?
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ영웅관리 들어와서 바론팔기 스캔한다
바론팔기스캔:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰바론2성30.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 바론팔기
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,150,10
click up
sleep,500
goto, 바론팔기스캔2
}
바론팔기스캔2:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰바론2성30.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 바론팔기
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,150,10
click up
sleep,500
goto, 바론팔기스캔3
}
바론팔기스캔3:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰바론2성30.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 바론팔기
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,150,10
click up
sleep,500
goto, 바론팔기스캔4
}
바론팔기스캔4:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰바론2성30.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 바론팔기
}
if errorlevel=1
{
mouseclick,left,1665,16
sleep,500
mousemove,300,300,10
click down
sleep,500
mousemove,300,150,10
click up
sleep,500
goto, 바론팔기스캔5
}
바론팔기스캔5:
MouseClick,left,1900,400
sleep,1000
ImageSearch,vx,vy,1,1,1920,1080,*80 큰바론2성30.png
if errorlevel=0
{
MouseClick,left,1900,400
mouseclick,left,%vx%,%vy%
sleep,1000
goto, 바론팔기
}
if errorlevel=1
{
goto, 바론팔기실패
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ바론팔기실패
바론팔기실패:
MouseClick,left,1900,400
mouseclick,left,1446,44
sleep,1000
goto, 바론팔기실패2
바론팔기실패2:
ImageSearch,vx,vy,1,1,1920,1080,*80 모험.png
if errorlevel=0
{
goto, 모험시작
}
if errorlevel=1
{
goto, 바론팔기실패2
sleep, 1000
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ해피팔기
해피팔기:
ImageSearch,vx,vy,1,1,1920,1080,*80 팀배치.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1676,298
sleep 500
MouseClick,left,1900,400
MouseClick,left,1676,298
sleep 500
goto, 해피팔기2
}
if errorlevel=1
{
goto, 해피팔기
}
해피팔기2:
ImageSearch,vx,vy,1,1,1920,1080,*80 영웅판매.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1730,245
sleep, 4000
goto, 해피팔고해피스캔
}
if errorlevel=1
{
goto, 해피팔기2
}
?
해피팔고해피스캔:
ImageSearch,vx,vy,1,1,1920,1080,*80 영웅관리.png
if errorlevel=0
{
goto, 해피무한팔기
}
if errorlevel=1
{
goto, 해피팔고해피스캔
}
해피무한팔기:
ImageSearch,vx,vy,1,1,1920,1080,*150 큰해피1성30.png
if errorlevel=0
{
goto, 해피팔기스캔3
}
if errorlevel=1
{
MouseClick,left,1900,400
MouseClick,left,1445,46
goto, 모험시작
sleep 1000
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ바론팔기
바론팔기:
ImageSearch,vx,vy,1,1,1920,1080,*80 팀배치.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1676,298
sleep 1000
goto, 바론팔기2
}
if errorlevel=1
{
goto, 바론팔기
}
바론팔기2:
ImageSearch,vx,vy,1,1,1920,1080,*80 영웅판매.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1730,245
sleep, 4000
goto, 바론팔고바론스캔
}
if errorlevel=1
{
goto, 바론팔기2
}
?
바론팔고바론스캔:
ImageSearch,vx,vy,1,1,1920,1080,*80 영웅관리.png
if errorlevel=0
{
goto, 바론무한팔기
}
if errorlevel=1
{
goto, 바론팔고바론스캔
sleep, 1000
}
바론무한팔기:
ImageSearch,vx,vy,1,1,1920,1080,*150 큰바론2성30.png
if errorlevel=0
{
goto, 바론팔기스캔5
}
if errorlevel=1
{
MouseClick,left,1900,400
MouseClick,left,1445,46
sleep 1000
goto, 모험시작
}
모험시작:
ImageSearch,vx,vy,1,1,1920,1080,*80 모험.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1655,308
sleep 1000
goto, 영웅꽉참
}
if errorlevel=1
{
sleep 1000
goto, 모험시작
}
영웅꽉참:
ImageSearch,vx,vy,1,1,1920,1080,*80 영웅꽉참.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1747,245
sleep 1000
goto, 해피팔기스캔
}
if errorlevel=1
{
goto, 열쇠부족
}
;ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ해야함
열쇠부족:
ImageSearch,vx,vy,1,1,1920,1080,*50 열쇠상점.png
if errorlevel=0
{
sleep, 1000
MouseClick,left,1900,400
MouseClick,left,1730,246
sleep 1000
goto, 팝업창
}
if errorlevel=1
{
goto, 장비꽉참
}
팝업창:
ImageSearch,vx,vy,1,1,1920,1080,*50 팝업창.png
if errorlevel=0
{
sleep 1000
MouseClick,left,1900,400
MouseClick,left,1813,57
sleep 1000
goto, 팝업취소창
}
if errorlevel=1
{
sleep 1000
goto, 열쇠상점들어옴
}
?
팝업취소창:
ImageSearch,vx,vy,1,1,1920,1080,*20 팝업취소창.png
if errorlevel=0
{
sleep 1000
MouseClick,left,1900,400
MouseClick,left,1734,259
sleep 1000
goto, 열쇠상점들어옴
}
if errorlevel=1
{
sleep 1000
goto, 팝업취소창
}
?
열쇠상점들어옴:
ImageSearch,vx,vy,1,1,1920,1080,*50 열쇠상점1개.png
if errorlevel=0
{
sleep,1000
MouseClick,left,1900,400
mouseclick,left,1665,16
sleep,500
mousemove,465,225,10
click down
sleep,500
mousemove,133,224,10
click up
goto, 40개사기
sleep 1000
}
if errorlevel=1
{
goto, 열쇠상점들어옴
sleep 1000
}
?
40개사기:
ImageSearch,vx,vy,1,1,1920,1080,*50 열쇠상점40개.png
if errorlevel=0
{
sleep 1000
MouseClick,left,1900,400
MouseClick,left,1884,227
sleep 1000
goto, 40개사기2
}
if errorlevel=1
{
sleep,1000
MouseClick,left,1900,400
mouseclick,left,1665,16
sleep,500
mousemove,465,225,10
click down
sleep,500
mousemove,133,224,10
click up
sleep,500
goto, 40개사기
}
40개사기2:
ImageSearch,vx,vy,1,1,1920,1080,*50 열쇠구매하기.png
if errorlevel=0
{
sleep 1000
MouseClick,left,1900,400
MouseClick,left,1728,256
sleep 1000
goto, 열쇠구매완료
}
if errorlevel=1
{
goto, 40개사기2
sleep 1000
}
?
?
열쇠구매완료:
ImageSearch,vx,vy,1,1,1920,1080,*50 열쇠구매완료.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1669,244
sleep 2000
goto, 열쇠구매후모험
}
if errorlevel=1
{
goto, 열쇠구매완료
sleep 1000
}
?
열쇠구매후모험:
ImageSearch,vx,vy,1,1,1920,1080,*50 열쇠구매후모험.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1446,42
sleep 1000
goto, 모험시작
}
if errorlevel=1
{
goto, 열쇠구매후모험
sleep 1000
}
장비꽉참:
ImageSearch,vx,vy,1,1,1920,1080,*50 장비꽉참.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1673,243
sleep 2000
goto, 1라
}
if errorlevel=1
{
sleep 2000
goto, 1라
}
?
?
?
?
1라:
ImageSearch,vx,vy,1,1,1920,1080,*50 1라.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1750,268
goto, 2라
}
if errorlevel=1
{
sleep 1000
goto, 1라
}
2라:
ImageSearch,vx,vy,1,1,1920,1080,*50 2라.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1706,306
goto, 3라
}
if errorlevel=1
{
sleep 1000
goto, 2라
}
3라:
ImageSearch,vx,vy,1,1,1920,1080,*50 3라.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1706,270
sleep 3000
goto, 다시하기
}
if errorlevel=1
{
sleep 1000
goto, 3라
}
다시하기:
ImageSearch,vx,vy,1,1,1920,1080,*50 다시하기.png
if errorlevel=0
{
sleep,1000
MouseClick,left,1900,400
MouseClick,left,1880,121
sleep,1000
MouseClick,left,1900,400
MouseClick,left,1880,120
sleep,1000
goto, 모험끝
}
if errorlevel=1
{
sleep,1000
MouseClick,left, 248,248
goto, 다시하기
}
?
레이드1:
ImageSearch,vx,vy,1,1,1920,1080,*50 레이드1.png
if errorlevel=0
{
sleep,3000
MouseClick,left,1900,400
MouseClick,left,1452,49
sleep,5000
goto, 레이드2
}
if errorlevel=1
{
goto, 레이드2
}
레이드2:
ImageSearch,vx,vy,1,1,1920,1080,*50 레이드2.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1445,40
sleep,3000
goto, 레이드확인
}
if errorlevel=1
{
goto, 각종확인
}
레이드3:
ImageSearch,vx,vy,1,1,1920,1080,*50 7-1.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1839,112
sleep,2000
goto, 레이드4
}
if errorlevel=1
{
goto, 레이드3
sleep,1000
}
레이드4:
ImageSearch,vx,vy,1,1,1920,1080,*50 모험준비.png
if errorlevel=0
{
MouseClick,left,1900,400
MouseClick,left,1570,303
sleep,3000
goto, 매크로시작
}
if errorlevel=1
{
goto, 레이드4
sleep,1000
}
레이드확인:
ImageSearch,vx,vy,1,1,1920,1080,*50 각종확인.png
if errorlevel=0
{
sleep,1000
MouseClick,left,1900,400
MouseClick,left,1880,304
sleep,3000
goto, 레이드확인
}
if errorlevel=1
{
goto, 레이드3
sleep,1000
}
각종확인:
ImageSearch,vx,vy,1,1,1920,1080,*50 각종확인.png
if errorlevel=0
{
sleep,1000
MouseClick,left,1900,400
MouseClick,left,1880,304
sleep,3000
goto, 각종확인2
}
if errorlevel=1
{
mousemove,1665,16, 10
sleep,1000
mousemove,300,300,10
goto, 모험끝
}
각종확인2:
ImageSearch,vx,vy,1,1,1920,1080,*50 각종확인.png
if errorlevel=0
{
sleep,1000
MouseClick,left,1900,400
MouseClick,left,1880,304
sleep,3000
goto, 각종확인3
}
if errorlevel=1
{
sleep,1000
goto, 모험끝
}
각종확인3:
ImageSearch,vx,vy,1,1,1920,1080,*50 각종확인.png
if errorlevel=0
{
sleep,1000
MouseClick,left,1900,400
MouseClick,left,1880,304
sleep,3000
goto, 매크로시작
}
if errorlevel=1
{
sleep,1000
goto, 모험끝
}
모험끝:
ImageSearch,vx,vy,1,1,1920,1080,*50 모험.png
if errorlevel=0
{
goto, 매크로시작
}
if errorlevel=1
{
sleep,1000
goto, 레이드1
}
?
return
F2::pause
F3::exitapp
?
?
?
?
?
?
?
?
?
?
goto 를 너무 의지하는데 그걸 의지하지 않고
제 머리속에 순서대로 스크립트 진행시키는 방법이 어떤게 있을까요?ㅠㅠ
능력자분들 답변해주시면 감사드립니다..