매크로

조회 수 165 추천 0 댓글 5
hqdefault.jpg

읽어주셔서 감사합니다.


일단 이미지 서치로 여기까지는 대충 해놓았습니다.

(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



  • profile
    BotLoi 2017.03.04 21:24

    수정할 부분이 많으나 귀찮기 때문에..

    -------------------------------------------


    #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

  • 질풍헌터 2017.03.04 21:55
    답글 감사합니다.. 주르륵 읽어 보는데 눈물이.. (쿨럭)
    gosub를 저렇게 이용을 하는군요.

    제대로 알지도 못하지만 최대한 적응하면서 노력하겠습니다. "꾸벅"

    gosub, % "Enter_" Num + 2 <- 요건 설명 좀 부탁드리겠습니다.
    명령은 이해하지만 .. 활용이해력이 상당히 부족합니다.. 제가.. 죄송합니다.
  • profile
    BotLoi 2017.03.04 23:35
    테스트를 하지 않아서 정상적으로 작동하는지는 모르겠네요.. 질문하신 해당 명령어는 반복되는 내용을 줄이기 위해 변수를 이용하여 해당 라벨로 이동하기 위한 코드입니다. 앗.. 제가 쓴 댓글에 오류가 있었군요...

    if(Num = 4)
    {
    Num = 0
    continue
    }
    gosub, % "Enter_" Num + 2

    위 내용을

    if(Num = 4)
    {
    Num = 0
    gosub, % "Enter_" Num + 2
    }

    로 바꿔주십시요..
  • profile
    BotLoi 2017.03.05 19:56
    그래도 이해가 안가신다면 아래의 스크립트를 한번 테스트해보십시요..
    ---------------------------------------
    Loop, 2
    {
    gosub, % "Label" A_Index + 1
    }
    return

    Label1:
    MsgBox 1
    return

    Label2:
    MsgBox 2
    return

    Label3:
    MsgBox 3
    return
  • 질풍헌터 2017.03.08 22:33
    . 글 감사합니다. 게임이 pc판에서 폰으로 넘어온거라 나름 메크로 방지차원에서
    여러곳에 트랩(?)이 있어 정형화된 스크립트보다는 단순무식한게 더 잘먹히는거 같습니다. ㅎㅎ
    (물론 이것 역시 파고들면 해법은 있겠지만서도..)

    중간 중간 올라오는 물방울 3번 터치되면 미니게임이 실행되기도 하고 효율을 위해
    빠른 터치를 강제하면 어김없이 게임실행이 되어 버리는 현상도 나타나네요.

    주신 스크립트는 확실히 이해가 빠르게 되네요. 정말 감사합니다.

    뱀다리).. 게임 공카라는 곳에 등업 게시물 올렸는데 잘렸씁니다.ㅡㅡ; 원하는 양식에 맞게 글을 썼는데도
    불구하고 최종 게임 접속한 폰 내용을 따진건지 내 닉네임보고 자른건지.

List of Articles
분류 제목 글쓴이 최근변경 추천
질문 Gui에 설정 불러와 적용 시키는 법좀 도움부탁드려요 12 가족오락관 2016.10.31 0/0
질문 오토핫키 이미지서치 급 질문입니다 답변기다리겠습니다. 8 케이디 2016.11.15 0/0
질문 블택2와 블택의 adb 활용법이 틀린가요? 11 flem 2016.10.30 0/0
질문 비활성 관련 질문드립니다. 뽕눈 2016.10.28 0/0
질문 녹스 스피드모드에서 gdip 이제 안되나요? 4 비둘기둘기 2016.11.05 0/0
질문 dllcall로 autohotkey.dll이 호출 안되는 현상 하연데디 2016.10.28 0/0
질문 Gui edit 에 대해 궁금한게 있어요 4 스웨이스 2016.10.29 0/0
질문 메이플m 오토핫키 프로그램 쓰고있는데요 5 스웨이스 2016.11.04 0/0
질문 이미지서치 및 document..에 대해 알려주세요..해당내... 2 정직한 2016.10.31 0/0
질문 adb를 이용한 키입력에 대해 질문 드립니다 4 flem 2016.10.30 0/0
공유 오버워치 오토에임 공유해주실분 이나 최신소스좀 던져... 2 박둘니 2016.10.30 0/0
질문 document가 뭔가요? 힌트좀 주세요. 정직한 2016.10.30 0/0
질문 Gdip + adb 사용 질문 받아주세요 Taroa 2016.10.30 0/0
질문 녹스에서 PostMessage 로 비활성 드래그 안되나요? 4 고파사탕 2021.01.20 0/0
질문 도움좀 주세요 이미지 서치가 되다 안되는 이유가 무엇... 3 인디비쥬얼 2016.11.02 0/0
질문 비활성 이미지 서치 질문 있습니다! 2 휘파람 2016.10.31 0/0
질문 비활성 이미지 서치 질문! (GDIP) 5 휘파람 2016.10.31 0/0
질문 매크로 좌표값에 대해 질문드립니다. 아시나용 2016.10.31 0/0
질문 매크로 진행중에 멈춤현상 도움 부탁드립니다. 4 마하카라 2017.01.05 0/0
질문 Settimer를 활용할려고 하는데 잘안되네요 1 스웨이스 2016.11.01 0/0
Board Pagination Prev 1 ... 9293949596979899100 ... 209 Next
/ 209

전체 최신 인기글

전체 주간 인기글