읽어주셔서 감사합니다.
일단 이미지 서치로 여기까지는 대충 해놓았습니다.
(https://www.youtube.com/watch?v=-X-YWKgwKhU)
게임 특성상 진화나 만렙되어 사라지는거까지 일일히 좌표하긴 뭐하고 발생 시
방 이동전에 처리하는 내용으로 마무리 했습니다.(이미지 서치해도 검색안되면 꽝임으로..)
맨땅에 헤딩하는 느낌으로 일단 돌아가는 내용으로만 구성한 내용입니다.
- 먹이주기 1.5초는 먹이주는순간 메세지창이 떠서 이미지가림으로 검색이 안되는걸 방지하고자 준것입니다.
- 더미좌표는 정보창이 떳을때 사라지게 하기 위함입니다.
. 반복되는 스크립트 내용을 조금 단순하게 함수 써서 하는 방법이 뭐가 있을런지요??
. 유투브 동영상 링크 거는 방법도 알려주세요.ㅡㅡ; 소스코드 붙여넣어도 과거와 같군요.
----해당 게임 ahk파일 내용입니다.----
F1::
Loop
;여기에 무한 반복할 작업의 코드를 작성
{ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\채집준비.bmp
if (errorlevel = 0)
;여기에 이미지를 찾았을때 마우스를 클릭하는 코드
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기1
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기2
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기3
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기4
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기5
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기6
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기7
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기8
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기9
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기10
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기12
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기13
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기14
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기14
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기15
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수01
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수02
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수03
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수04
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수05
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수06
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수07
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수08
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수09
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수10
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수11
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수12
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수13
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수15
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\진화시작.bmp
if (errorlevel = 0)
;진화시작
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\진화창닫기.bmp
if (errorlevel = 0)
;진화창닫기
send {click %foundx% %foundy%}
sleep, 1000
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\더미좌표.bmp
if (errorlevel = 0)
;더미좌표
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\사진취소.bmp
if (errorlevel = 0)
;사진취소
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\방생하기.bmp
if (errorlevel = 0)
;방생하기
send {click %foundx% %foundy%}
sleep, 3000
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\채집닫기.bmp
if (errorlevel = 0)
;채집닫기
send {click %foundx% %foundy%}
sleep, 2000
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\2번방탈출.bmp
if (errorlevel = 0)
;2번방탈출
send {click %foundx% %foundy%}
sleep, 2000
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\3번방입장.bmp
if (errorlevel = 0)
;3번방입장
send {click %foundx% %foundy%}
sleep, 2000
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\채집준비.bmp
if (errorlevel = 0)
;여기에 이미지를 찾았을때 마우스를 클릭하는 코드
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기1
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기2
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기3
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기4
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기5
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기6
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기7
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기8
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기9
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기10
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기12
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기13
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기14
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기14
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기15
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수01
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수02
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수03
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수04
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수05
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수06
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수07
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수08
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수09
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수10
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수11
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수12
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수13
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수15
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\진화시작.bmp
if (errorlevel = 0)
;진화시작
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\진화창닫기.bmp
if (errorlevel = 0)
;진화창닫기
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\더미좌표.bmp
if (errorlevel = 0)
;더미좌표
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\사진취소.bmp
if (errorlevel = 0)
;사진취소
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\방생하기.bmp
if (errorlevel = 0)
;방생하기
send {click %foundx% %foundy%}
sleep, 3000
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\채집닫기.bmp
if (errorlevel = 0)
;채집닫기
send {click %foundx% %foundy%}
sleep, 2000
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\3번방탈출.bmp
if (errorlevel = 0)
;3번방탈출
send {click %foundx% %foundy%}
sleep, 2000
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\4번방입장.bmp
if (errorlevel = 0)
;4번방입장
send {click %foundx% %foundy%}
sleep, 2000
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\채집준비.bmp
if (errorlevel = 0)
{
;여기에 이미지를 찾았을때 마우스를 클릭하는 코드
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기1
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기2
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기3
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기4
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기5
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기6
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기7
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기8
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기9
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기10
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기12
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기13
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기14
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기14
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기15
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수01
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수02
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수03
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수04
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수05
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수06
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수07
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수08
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수09
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수10
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수11
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수12
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수13
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수15
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\진화시작.bmp
if (errorlevel = 0)
;진화시작
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\진화창닫기.bmp
if (errorlevel = 0)
;진화창닫기
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\더미좌표.bmp
if (errorlevel = 0)
;더미좌표
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\방생하기.bmp
if (errorlevel = 0)
;방생하기
send {click %foundx% %foundy%}
sleep, 3000
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\사진취소.bmp
if (errorlevel = 0)
;사진취소
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\채집닫기.bmp
if (errorlevel = 0)
;채집닫기
send {click %foundx% %foundy%}
sleep, 2000
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\4번방탈출.bmp
if (errorlevel = 0)
;4번방탈출
send {click %foundx% %foundy%}
sleep, 2000
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\5번방입장.bmp
if (errorlevel = 0)
;5번방입장
send {click %foundx% %foundy%}
sleep, 2000
}ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\채집준비.bmp
if (errorlevel = 0)
{
;여기에 이미지를 찾았을때 마우스를 클릭하는 코드
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기1
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기2
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기3
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기4
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기5
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기6
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기7
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기8
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기9
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기10
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기12
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기13
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기14
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기14
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
;먹이주기15
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수01
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수02
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수03
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수04
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수05
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수06
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수07
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수08
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수09
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수10
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수11
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수12
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수13
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
;골드회수15
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\진화시작.bmp
if (errorlevel = 0)
;진화시작
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\진화창닫기.bmp
if (errorlevel = 0)
;진화창닫기
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\더미좌표.bmp
if (errorlevel = 0)
;더미좌표
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\방생하기.bmp
if (errorlevel = 0)
;방생하기
send {click %foundx% %foundy%}
sleep, 3000
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\사진취소.bmp
if (errorlevel = 0)
;사진취소
send {click %foundx% %foundy%}
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\채집닫기.bmp
if (errorlevel = 0)
;채집닫기
send {click %foundx% %foundy%}
sleep, 2000
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\5번방탈출.bmp
if (errorlevel = 0)
;5번방탈출
send {click %foundx% %foundy%}
sleep, 2000
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\2번방입장.bmp
if (errorlevel = 0)
;2번방입장
send {click %foundx% %foundy%}
sleep, 2000
}
}
return
F2::Pause
F3::ExitApp
수정할 부분이 많으나 귀찮기 때문에..
-------------------------------------------
#NoEnv
#SingleInstance force
F1::
Num = 0
Loop
{
Num++
gosub, Prepare
gosub, Feed
gosub, Gold
gosub, Evolution
gosub, Dummy
gosub, Cancel
gosub, Release
gosub, Close
gosub, % "Exit_" Num + 1
if(Num = 4)
{
Num = 0
continue
}
gosub, % "Enter_" Num + 2
}
return
Prepare:
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\채집준비.bmp
if (errorlevel = 0)
send {click %foundx% %foundy%}
return
Feed:
Loop, 15
{
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\먹이주기.bmp
if (errorlevel = 0)
send {click %foundx% %foundy%}
}
return
Gold:
Loop, 15
{
sleep, 500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\골드회수.bmp
if (errorlevel = 0)
send {click %foundx% %foundy%}
}
Sleep, 500
return
Evolution:
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\진화시작.bmp
if (errorlevel = 0)
send {click %foundx% %foundy%}
sleep, 1500
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\진화창닫기.bmp
if (errorlevel = 0)
send {click %foundx% %foundy%}
Sleep, 1000
return
Dummy:
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\더미좌표.bmp
if (errorlevel = 0)
send {click %foundx% %foundy%}
sleep, 500
return
Cancel:
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\사진취소.bmp
if (errorlevel = 0)
send {click %foundx% %foundy%}
sleep, 500
return
Release:
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\방생하기.bmp
if (errorlevel = 0)
send {click %foundx% %foundy%}
sleep, 3000
return
Close:
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\채집닫기.bmp
if (errorlevel = 0)
send {click %foundx% %foundy%}
sleep, 2000
return
Exit_2:
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\2번방탈출.bmp
if (errorlevel = 0)
send {click %foundx% %foundy%}
sleep, 2000
return
Enter_3:
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\3번방입장.bmp
if (errorlevel = 0)
send {click %foundx% %foundy%}
sleep, 2000
return
Exit_3:
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\3번방탈출.bmp
if (errorlevel = 0)
send {click %foundx% %foundy%}
sleep, 2000
return
Enter_4:
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\4번방입장.bmp
if (errorlevel = 0)
send {click %foundx% %foundy%}
sleep, 2000
return
Exit_4:
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\4번방탈출.bmp
if (errorlevel = 0)
send {click %foundx% %foundy%}
sleep, 2000
return
Enter_5:
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\5번방입장.bmp
if (errorlevel = 0)
send {click %foundx% %foundy%}
sleep, 2000
return
Exit_5:
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\5번방탈출.bmp
if (errorlevel = 0)
send {click %foundx% %foundy%}
sleep, 2000
return
Enter_2:
ImageSearch, foundx, foundy, 0,0, A_screenwidth, A_screenheight, *50 %a_scriptDir%\image\2번방입장.bmp
if (errorlevel = 0)
send {click %foundx% %foundy%}
sleep, 2000
return