매크로

조회 수 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번 터치되면 미니게임이 실행되기도 하고 효율을 위해
    빠른 터치를 강제하면 어김없이 게임실행이 되어 버리는 현상도 나타나네요.

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

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

최근 추천글

오핫 제작합니다 1 설입 2024-06-18 23:45 +2
List of Articles
분류 제목 글쓴이 최근변경 추천
질문 안되는 이유를 찾은것 같습니다. 근데 해결책을 모르겠... 12 꿈을낚는아이 2015.09.01 0/0
질문 안되는 이유는 무었인가요? 7 앞프론뒷태 2015.01.05 0/0
질문 안녕하십니까 굇수님들 질문하나만 드리겠습니다, 비활... 2 이코노뮉승 2017.07.03 0/0
질문 안녕하세요~ 응답없음 문제 때문에 힘드네요 1 잘짜고싶다 2018.02.20 0/0
질문 안녕하세요~ 도움이 필요합니다 ㅠ 3 노력은옳아 2016.07.19 0/0
자유 안녕하세요? 오토 제작에 관한 유튜브 채널 운용중입니다 캐스펑 2019.05.28 0/0
질문 안녕하세요? 오랜만에 질문글 하나 푸욱싸고갑니다!![... 10 뚜르따르또르 2015.09.07 0/0
질문 안녕하세요. 메모리를 너무 많이 잡아 먹는데 이걸 어... 7 명랑택시 2019.02.14 0/0
질문 안녕하세요. postmessage 비활성 입력에 대해서 궁금합... 3 뀨뀨아딩 2016.12.15 0/0
질문 안녕하세요!! 오토핫키 막히는 점이 있어서 질문드립니다. 5 한지1 2015.03.02 0/0
자유 안녕하세요! 오핫에 입문하고픈 1인입니다 1 트리플개미 2015.02.02 0/0
질문 안녕하세요! 모모에서 오토핫키 비활성클릭을 좀 구현... 2 woojin77 2017.10.04 0/0
질문 안녕하세요 현재활성화된 예뮬레이터의 경로를 알수있... 9 제발등업좀2 2016.05.13 0/0
질문 안녕하세요 포스트메세지관련 질문있어서 글써봅니다!! lym13 2018.10.01 0/0
질문 안녕하세요 특정 이미지 서치후 클릭 을 만들었는데 뭐... 3 일단마셔봐 2018.02.07 0/0
질문 안녕하세요 창 고정에 대해서 여쭙고싶습니다. 3 뎅뎅 2016.02.20 0/0
질문 안녕하세요 질문좀 올리겠습니다 4 다중이 2015.04.26 0/0
질문 안녕하세요 질문있습니다 5 달아올라 2015.07.31 0/0
질문 안녕하세요 질문 하나만 드려봅니다.. 뎅뎅 2015.06.02 0/0
질문 안녕하세요 정규식 질문? (맞나모르겟네요) 5 제발등업좀2 2016.06.14 0/0
Board Pagination Prev 1 ... 9293949596979899100 ... 209 Next
/ 209

전체 최신 인기글

전체 주간 인기글