매크로

꼬이는거막을려고 색인식실패하면 자동으로 재실행하게 짜봤는데요
한판돌릴때까지는 멀쩡한데 그다음판 들어가면 걍 먹통이됩니다(반복횟수무한). 폰스펙도 딱히 딸리진않구요.
뭘고쳐야되죠? 로그도안뜨던데
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
분류 제목 글쓴이 최근변경 추천
자유 히로 매크로 우회 아샌,젤리빈,킷캣 색값 구동 가능버... 6 개념의정석 2015.03.13 1/0
자유 아.. 졸라 억울해서 눈물이 난다. 6 노마드프로 2015.03.15 0/0
자유 패치후 이전 (구)스크립트에 관해... 2 노원구찌 2015.02.23 0/0
자유 비훑님 레이드 문제 부탁드립니다 7 키로롱 2015.03.03 0/0
자유 킷캣으로 히로매클 돌리는분은 없나보네여 4 늑향로 2015.02.25 0/0
자유 이제 별되에서 히로로 할만한게 뭐가있을까요? 6 비훑 2015.04.24 0/0
자유 [1080*1920] 통합레이드 및 스크립트 오류나시는분들 ... 14 비훑 2015.03.02 0/0
자유 기본 스크립트 문의 2 얼짱화섭 2015.02.15 0/0
자유 누가 히로 매크로 apk좀 주실수 없을까요? 2 노마드프로 2015.02.16 0/0
자유 이거 스크립트에 대체 무슨문제가 있는건가요?? 한판돌... 2 clzls1 2015.02.16 0/0
자유 킷캣에서 안튕기는 방법이.. 4 늑향로 2015.05.01 0/0
자유 별이되어라 색값 2 신기루001 2015.02.13 0/0
자유 9번방 무한 사냥 스크립트 구할 수 있을까요 ~ sss이오리 2015.02.13 0/0
자유 어제 패치로 인한 아레나 메크로 유우나레이 2015.02.13 0/0
자유 영웅 for kakao 노트2용 허접한 스크립트 5 뚜레쥬르 2015.02.25 1/0
자유 별되 업적 리뉴얼때문에 하스작이 무의미해지네요 ㅎㅎ 17 비훑 2015.08.05 2/0
자유 아크777님 께... 3 샤먼 2015.02.12 0/0
자유 젤리빈이랑 킷캣 색값다르나요? 1 clzls1 2015.02.10 0/0
자유 (별되)노트3 하스작+아레나 스크립트 (1080 X 1920) 16 샤먼 2015.03.12 3/0
자유 매크로 꼬임방지하기위해서는.. 1 clzls1 2015.02.10 0/0
Board Pagination Prev 1 ... 67891011121314 ... 36 Next
/ 36

전체 최신 인기글

전체 주간 인기글