매크로

꼬이는거막을려고 색인식실패하면 자동으로 재실행하게 짜봤는데요
한판돌릴때까지는 멀쩡한데 그다음판 들어가면 걍 먹통이됩니다(반복횟수무한). 폰스펙도 딱히 딸리진않구요.
뭘고쳐야되죠? 로그도안뜨던데
DDEVICE: IM-A850S 4.4.2
SCREEN_SIZE: 720x1280 (softkey)

//대전
var #color1 1
var #randx1 0
var #randy1 0
var #randx0 0
var #randy0 0

//대전준비
var #color2 0
var #randx2 0
var #randy2 0
var #randx3 0
var #randy3 0

//대전중
var #color3 100
var #color4 100
var #sleep1 0
var #randx4 0
var #randy4 0

//아이템고르기
var #color5 0
var #randx5 0
var #randy5 0
var #randx0 0
var #randy0 0

//아이템확인
var #color6 0
var #randx6 0
var #randy6 0
var #sleep2 0
var #count 0
var #sleep2 0
var #count1 0

:start

//대전
:1
sleep 2000
getcolor #color1 571 305
if #color1 == 0
toast 인식성공
rand #randx1 634 666
rand #randy1 1064 1120
touchpress 0 #randx1 #randy1
else
sleep 1000
toast 인식실패
calc #count #count + 1
if #count <= 10
goto :1
if #count >= 11
goto :error
endif

//대전준비
:2
sleep 2000
getcolor #color2 181 682
if #color2 == 1322825
rand #randx2 100 107
rand #randy2 850 1110
touchpress 0 #randx2 #randy2
else
goto :2
endif

//대전하시겠습니까
rand #sleep1 1000 1500
sleep #sleep1
rand #randx3 181 209
rand #randy3 662 863
touchpress 0 #randx3 #randy3

//대전중
:3
sleep 20000
:3a
sleep 2000
getcolor #color3 273 601
getcolor #color4 275 595
if #color3 == 0 or #color4 == 0
toast 인식성공2
rand #randx4 100 200
rand #randy4 500 800
touchpress 0 #randx4 #randy4
else
sleep 1000
toast 인식실패2
calc #count1 #count1 + 1
if #count1 <= 30
goto :3a
if #count1 >= 31
goto :error2
endif


//아이템고르기
:4
sleep 2000
getcolor #color5 417 406
if #color5 == 828828
rand #randx0 554 590
rand #randy0 181 279
touchpress 0 #randx0 #randy0
sleep 1500
rand #randx5 155 211
rand #randy5 808 988
touchpress 0 #randx5 #randy5
else
goto :4
endif

//아이템 확인
:5
sleep 2000
getcolor #color6 203 815
if #color6 == 2039096
rand #sleep2 1500 2000
sleep #sleep2
rand #randx6 100 300
rand #randy6 200 1000
touchpress 0 #randx6 #randy6
else
goto :5
sleep 1000
goto :start


:error
toast 에러
sleep 2000
touchDown 0 343 1248
sleep 62
touchUp 0
sleep 2424
touchDown 0 447 217
sleep 17
touchUp 0
sleep 1295
touchDown 0 101 589
sleep 63
touchUp 0
sleep 4635
touchDown 0 90 624
sleep 63
touchUp 0
sleep 458
touchDown 0 123 687
sleep 48
touchUp 0
sleep 2990
touchDown 0 313 649
sleep 56
touchUp 0
set #count 0
goto : start

:error2

toast 에러2
sleep 2000
touchDown 0 343 1248
sleep 62
touchUp 0
sleep 2424
touchDown 0 447 217
sleep 17
touchUp 0
sleep 1295
touchDown 0 101 589
sleep 63
touchUp 0
sleep 4635
touchDown 0 90 624
sleep 63
touchUp 0
sleep 458
touchDown 0 123 687
sleep 48
touchUp 0
sleep 2990
touchDown 0 313 649
sleep 56
touchUp 0
set #count1 0
goto : start
:end

//대전
var #color1 1
var #randx1 0
var #randy1 0
var #randx0 0
var #randy0 0

//대전준비
var #color2 0
var #randx2 0
var #randy2 0
var #randx3 0
var #randy3 0

//대전중
var #color3 100
var #color4 100
var #sleep1 0
var #randx4 0
var #randy4 0

//아이템고르기
var #color5 0
var #randx5 0
var #randy5 0
var #randx0 0
var #randy0 0

//아이템확인
var #color6 0
var #randx6 0
var #randy6 0
var #sleep2 0
var #count 0
var #sleep2 0
var #count1 0

:start

//대전
:1
sleep 2000
getcolor #color1 571 305
if #color1 == 0
toast 인식성공
rand #randx1 634 666
rand #randy1 1064 1120
touchpress 0 #randx1 #randy1
else
sleep 1000
toast 인식실패
calc #count #count + 1
if #count <= 10
goto :1
if #count >= 11
goto :error
endif

//대전준비
:2
sleep 2000
getcolor #color2 181 682
if #color2 == 1322825
rand #randx2 100 107
rand #randy2 850 1110
touchpress 0 #randx2 #randy2
else
goto :2
endif

//대전하시겠습니까
rand #sleep1 1000 1500
sleep #sleep1
rand #randx3 181 209
rand #randy3 662 863
touchpress 0 #randx3 #randy3

//대전중
:3
sleep 20000
:3a
sleep 2000
getcolor #color3 273 601
getcolor #color4 275 595
if #color3 == 0 or #color4 == 0
toast 인식성공2
rand #randx4 100 200
rand #randy4 500 800
touchpress 0 #randx4 #randy4
else
sleep 1000
toast 인식실패2
calc #count1 #count1 + 1
if #count1 <= 30
goto :3a
if #count1 >= 31
goto :error2
endif


//아이템고르기
:4
sleep 2000
getcolor #color5 417 406
if #color5 == 828828
rand #randx0 554 590
rand #randy0 181 279
touchpress 0 #randx0 #randy0
sleep 1500
rand #randx5 155 211
rand #randy5 808 988
touchpress 0 #randx5 #randy5
else
goto :4
endif

//아이템 확인
:5
sleep 2000
getcolor #color6 203 815
if #color6 == 2039096
rand #sleep2 1500 2000
sleep #sleep2
rand #randx6 100 300
rand #randy6 200 1000
touchpress 0 #randx6 #randy6
else
goto :5
sleep 1000
goto :start


:error
toast 에러
sleep 2000
touchDown 0 343 1248
sleep 62
touchUp 0
sleep 2424
touchDown 0 447 217
sleep 17
touchUp 0
sleep 1295
touchDown 0 101 589
sleep 63
touchUp 0
sleep 4635
touchDown 0 90 624
sleep 63
touchUp 0
sleep 458
touchDown 0 123 687
sleep 48
touchUp 0
sleep 2990
touchDown 0 313 649
sleep 56
touchUp 0
set #count 0
goto : start

:error2

toast 에러2
sleep 2000
touchDown 0 343 1248
sleep 62
touchUp 0
sleep 2424
touchDown 0 447 217
sleep 17
touchUp 0
sleep 1295
touchDown 0 101 589
sleep 63
touchUp 0
sleep 4635
touchDown 0 90 624
sleep 63
touchUp 0
sleep 458
touchDown 0 123 687
sleep 48
touchUp 0
sleep 2990
touchDown 0 313 649
sleep 56
touchUp 0
set #count1 0
goto : start
:end

  • clzls1 2015.02.13 23:15
    위에 device부분들은 복붙하다 오류난거에요
  • 샤먼 2015.02.16 00:02

    toast 명령어를 좀 사용하신거 같은데?

    어느시점까지 메시지가 뜨는지를 확인해서 그 부분의 스크립트를 확인하시는게 좋으실듯합니다.?


List of Articles
분류 제목 글쓴이 최근변경 추천
질문 구버전 히로매크로 받을수 있는곳 있을까요? 지니블렉션 2015.02.17 0/0
질문 [별되] 2/12일 패치 이후 좌표수정 문의드립니다. (스... 10 울트라 2015.08.19 0/0
질문 영군 히로매크로 질문좀할게요 1 화난파이리 2015.02.17 0/0
정보 [1080*1920 모바일] 간단 레이드 수락 2 비훑 2015.02.19 1/0
질문 스크립트 복붙이 왜안될까요 1 헬로우 2015.02.16 0/0
질문 비훑님 ! 죄송한데.. 1 하춘삼이 2015.02.16 0/0
질문 몬길하시는분 질문입니다 3 신비3340 2015.02.17 1/0
질문 고수분들 이거 왜 이럴까요? 입장 후 저 메세지만 뜨네요 5 용이7 2015.02.18 0/0
질문 맵 위치가 조금씩 변경 되는 부분 수정할 방법 없나요? 2 루시퍼스 2015.02.16 0/0
자유 [1080*1920] 통합레이드 및 스크립트 오류나시는분들 ... 14 비훑 2015.03.02 0/0
자유 기본 스크립트 문의 2 얼짱화섭 2015.02.15 0/0
질문 2/12 패치이후에 9번방 막보 480*800 사이즈 9번방 무... 5 꼭꼭숨어라 2015.02.27 0/0
자유 누가 히로 매크로 apk좀 주실수 없을까요? 2 노마드프로 2015.02.16 0/0
질문 히로매클 입문자입니다 도와주세요 3 암흑몽 2015.02.16 0/0
자유 이거 스크립트에 대체 무슨문제가 있는건가요?? 한판돌... 2 clzls1 2015.02.16 0/0
질문 몬길 히로매크로 질문 고수님들께 6 얼짱화섭 2015.04.20 0/0
질문 현재 스스스작 돌아 가나요? 1 아루민 2015.02.17 0/0
질문 별이되어라 질문,. 훙스 2015.02.13 0/0
질문 똥폰으로 히로돌리는데..ㅠㅠ 3 개삼이 2015.02.17 0/0
자유 킷캣에서 안튕기는 방법이.. 4 늑향로 2015.05.01 0/0
Board Pagination Prev 1 ... 343536373839404142 ... 123 Next
/ 123

전체 최신 인기글

전체 주간 인기글