매크로

조회 수 153 추천 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를 키보드로 작동시킬수 있나요? 3 ddfa4 2017.03.04 0/0
질문 녹스에서 오토핫키 매크로가 제대로 작동이 안되는 이... 1 cis105 2017.03.10 0/0
질문 초보 오토핫키 조언 부탁드립니다. 5 질풍헌터 2017.03.08 0/0
질문 이미지서치 일정 시간동안 하는 방법? 5 질풍헌터 2017.03.03 0/0
질문 조건부 winminimizeall을 하려고 하는데 도움 부탁드립... 1 슴새 2017.03.02 0/0
질문 오토핫키로 녹화 가능한가요? 4 감사합니다다다 2017.03.12 0/0
질문 오토핫키 정중하게 도움요청 드려봅니다 능력자님들.. 1 패닉 2017.03.01 0/0
자유 오토핫키 작동일시정지시키기 알려주세요 2 ddfa4 2017.02.28 0/0
질문 이쁘게 gui 짜시는분들은 뭘 이용하시나요? 1 난느려 2017.02.28 0/0
질문 오토핫키 우회? 방법 질문 3 비몽군 2023.02.24 0/0
공유 포켓몬고 닌자봇 매크로 감시 매크로 소스 공유 1 T7GG 2017.03.05 0/0
질문 exe응용프로그램 타이틀 1 yubinzz 2017.02.25 0/0
질문 녹스 업데이트 후 해상도 변화 5 우리형 2017.02.23 0/0
질문 음... 검은사막 오토핫키 질문있습니다 2 난나에욤 2017.07.14 1/0
질문 여기서 의뢰하게 되면.?? 2 다중이 2017.02.21 0/0
질문 오토핫키 제작 의뢰를 하고 싶습니다. 3 Aula 2017.07.14 0/0
질문 메이플 거탐 자동화 만들고 있는데 이미지서치에서 간... 3 심장의중심 2017.03.01 0/0
질문 postmessage 와 controlsend 두 명령어 차이가뭔가요? 1 레나류륜 2017.02.19 0/0
질문 비활성 매크로 입력에 관해 질문드립니다 2 레나류륜 2017.02.16 0/0
질문 왜 클릭은 안되죠 .. ? 결과 값은 1로 뜨는데 클릭이안... yubinzz 2017.02.14 0/0
Board Pagination Prev 1 ... 9293949596979899100 ... 209 Next
/ 209

전체 최신 인기글

전체 주간 인기글