오토핫키 커뮤니티

조회 수 166 추천 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
분류 제목 글쓴이 최근변경 추천
질문 모모앱으로 매크 쓰시는분 봐주세요 13 가족오락관 2017.08.26 0/0
질문 캡쳐관련 질문 드립니다. 이기머시당가 2017.07.17 0/0
질문 모모앱플레이어 질문요! 홍길동님이다 2017.07.16 0/0
질문 오토핫키 핫키지정시 기존키 기능 사라짐.. 4 남해바다 2017.10.19 0/0
질문 스크립트 exe로변경하기 4 작은이득 2017.07.18 0/0
질문 리니지M 막피 방지 프로그램 없을까요? 2 훅간다레알 2017.07.15 0/0
질문 리니지m 오토핫키 자동사냥 매크로 만들었는데 문제가 ... 1 죠케빈 2017.07.15 0/0
자유 리니지m 매크로만드신분 없나요? 1 maxsin 2017.07.15 0/0
자유 오토핫키 제대로 배울수있는곳있을까요? 2 dpslalxz 2017.07.31 0/0
질문 윈도우 타이틀 이름 질문입니다.. 쇠망치 2017.07.13 0/0
질문 혹시 오토핫키 관련해서 서적이 있나요??? 1 숨은그림 2017.07.19 0/0
질문 오토핫키와 녹스 디바이스 연결 1 발레리나 2017.07.11 0/0
자유 혹시 adb에 대해 배울수잇는 곳 발레리나 2017.07.10 0/0
질문 넥쓘게임이미지서치가적용이 안돼요 1 텔텔텔대 2017.08.13 0/0
질문 리니지 기사 자사 매크로 만들었는데 추가질문좀요 8 무쏘오 2017.07.18 0/0
질문 그런데 매크로 쓴다고 불이익 받는건 없나요?? 4 타락빛 2017.07.12 0/0
자유 오토핫키로 리세마라만들기어렵나요? 3 오토공부하장 2017.07.12 0/0
자유 와우 이런공간도있었군요.. 3 리치 2017.07.18 0/0
질문 오토핫키 멈춤증상에대해 아시는분 2 다소니 2017.07.18 0/0
질문 핫키 입문자 질문드립니다 1 향취 2017.07.08 0/0
Board Pagination Prev 1 ... 9293949596979899100 ... 209 Next
/ 209

전체 최신 인기글

전체 주간 인기글