매크로

꼬이는거막을려고 색인식실패하면 자동으로 재실행하게 짜봤는데요
한판돌릴때까지는 멀쩡한데 그다음판 들어가면 걍 먹통이됩니다(반복횟수무한). 폰스펙도 딱히 딸리진않구요.
뭘고쳐야되죠? 로그도안뜨던데
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
분류 제목 글쓴이 최근변경 추천
자유 대충해서 돌리는중;; 8 epox 2014.12.15 0/0
자유 드래그해서 위치찾는방법!! 5 푸치카기어 2014.12.11 0/0
자유 레이드는 라인안님꺼 스크립트는 오류없이되는듯 13 푸치카기어 2014.12.11 0/0
자유 아아아 15일 물약 샀는데...ㅠ 12 하이룽롱 2014.12.11 0/0
자유 다행이 경험치 물약 1일짜리 먹었네요 ㅠㅠ 3 용기사 2014.12.12 0/0
자유 앞으로는 매크로 제작이 더 힘들어질것 같은 느낌이네요. 1 미역 2014.12.11 0/0
자유 [설명추가]패치에 대한... 가능 의견 입니다 3 르마르딘 2014.12.11 0/0
자유 허미... 이게 왠 날벼락... 2 배워가는중 2014.12.12 0/0
자유 에휴....예전버전..이나 써봐야지 6 헤븐이갑이다 2014.12.11 0/0
자유 사냥터 찾기 아이디어 23 서기1981 2014.12.11 1/0
자유 레이드는해야죠..드롭확률도 올려줬는데. 현 라이안님 ... 7 헬로우 2014.12.11 0/0
자유 별되님꺼 기준.. 21 하르핌 2014.12.15 0/0
자유 맵버튼 찾는법에 대해서,, 3 우후훅 2014.12.11 0/0
자유 갤럭시 3 스마트폰 전용 골램 언덕 매크로 1 o0osan 2014.12.11 0/0
자유 골렘언덕(오른쪽상단 고정) 캡쳐 9장해서 겹쳐본 이미지 13 령화 2014.12.11 1/0
자유 지역화면을 인식하는 3개의 점이.. 6 하르핌 2014.12.11 0/0
자유 매크로 초보입니다 질문이요. 1 다삐 2016.11.13 0/0
자유 이와중에 제 친구꺼는 돌아가네요? 7 모들랑장이 2014.12.11 0/0
자유 망햇어 패치 괜히햇어 ㅠㅠ 5 o0osan 2014.12.12 0/0
자유 뒤늦게 메크로를 알고 행복했건만.. 3 쌈개 2014.12.11 0/0
Board Pagination Prev 1 ... 67891011121314 ... 36 Next
/ 36

전체 최신 인기글

전체 주간 인기글