綁定帳號登入

Android 台灣中文網

打印 上一主題 下一主題

[修改] 腳本修改問題

 關閉 [複製連結] 查看: 1032|回覆: 8|好評: 0
跳轉到指定樓層
樓主
him532 | 收聽TA | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
發表於 2015-12-27 11:16

馬上加入Android 台灣中文網,立即免費下載應用遊戲。

您需要 登錄 才可以下載或查看,沒有帳號?註冊

x
if x=="30張" then
   touchClick(545*r+xr, 800*r+yr)
   sleep(3000);
   touchClick(600*r+xr,156*r+yr)
   sleep(1000)
   touchClick(560*r+xr,250*r+yr)
   sleep(1000)
   clean2()
   sleep(2000);
   touchClick(150*r+xr, 650*r+yr)
   sleep(300)
   touchClick(150*r+xr, 650*r+yr)
   sleep(3000)
   net()
   sleep(500);
   clean2()
   sleep(2000);
   touchClick(150*r+xr, 650*r+yr)
   sleep(300)
   touchClick(150*r+xr, 650*r+yr )
   sleep(3000);
   net()
   sleep(500);
   clean2()
   sleep(2000);
   touchClick(150*r+xr, 650*r+yr)
   sleep(300)
   touchClick(150*r+xr, 650*r+yr )
   sleep(3000)
   net()
   sleep(500)
input(4)
sleep(500)
   input(4)
  end
end

改完這個 最後要修改確定刪除 有大大 知道後面怎麼打法
「用Android 就來APK.TW」,快來加入粉絲吧!
Android 台灣中文網(APK.TW)
收藏收藏 分享分享 分享專題
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

沙發
hosing0072000 | 收聽TA | 只看該作者
發表於 2015-12-27 18:46
我想知修改買20張卡係點改?
用Android 就來Android 台灣中文網(https://apk.tw)
回覆 支持 反對

使用道具 舉報

板凳
metoogo | 收聽TA | 只看該作者
發表於 2015-12-29 12:12
什么意思啊?意思是说自动卖卡?
用Android 就來Android 台灣中文網(https://apk.tw)
回覆 支持 反對

使用道具 舉報

地板
 樓主| him532 | 收聽TA | 只看該作者
發表於 2015-12-29 23:24
metoogo 發表於 2015-12-29 12:12
什么意思啊?意思是说自动卖卡?

恩  最後點擊 確定 賣卡 不會設定
用Android 就來Android 台灣中文網(https://apk.tw)
回覆 支持 反對

使用道具 舉報

5
youta | 收聽TA | 只看該作者
發表於 2016-1-3 00:31
由 手機網頁 發佈
原作者大概沒玩了。一次20張要從clean2()子巨集著手
用Android 就來Android 台灣中文網(https://apk.tw)
回覆 支持 反對

使用道具 舉報

6
youta | 收聽TA | 只看該作者
發表於 2016-1-3 00:38
由 手機網頁 發佈
點確定分解卡片則由 touchClick(150*r+xr, 650*r+yr)    sleep(300)    touchClick(150*r+xr, 650*r+yr)    sleep(3000)去修改,因為確定位置不一樣了,要找出對應的數字位置。
用Android 就來Android 台灣中文網(https://apk.tw)
回覆 支持 反對

使用道具 舉報

7
a3556959 | 收聽TA | 只看該作者
發表於 2016-1-3 19:24
都沒有人更新腳本上傳 都沒得用了
用Android 就來Android 台灣中文網(https://apk.tw)
回覆 支持 反對

使用道具 舉報

8
youta | 收聽TA | 只看該作者
發表於 2016-1-5 21:48
本帖最後由 youta 於 2016-1-6 03:54 編輯

原本10張的代碼
  1. function clean2()
  2. sleep(100);
  3. touchClick(85*r+xr, 320*r+yr)
  4. sleep(100);
  5. touchClick(205*r+xr, 320*r+yr)
  6. sleep(100);
  7. touchClick(325*r+xr, 320*r+yr)
  8. sleep(100);
  9. touchClick(445*r+xr, 320*r+yr)
  10. sleep(100);
  11. touchClick(565*r+xr, 320*r+yr)
  12. sleep(100);
  13. touchClick(85*r+xr, 440*r+yr)
  14. sleep(100);
  15. touchClick(205*r+xr, 440*r+yr)
  16. sleep(100);
  17. touchClick(325*r+xr, 440*r+yr)
  18. sleep(100);
  19. touchClick(445*r+xr, 440*r+yr)
  20. sleep(100);
  21. touchClick(565*r+xr, 440*r+yr)
  22. sleep(500);
  23. touchClick(545*r+xr, 800*r+yr)
  24. end
複製代碼


20張的代碼
  1. function clean3()
  2. sleep(100);
  3. touchClick(85*r+xr, 320*r+yr)
  4. sleep(100);
  5. touchClick(205*r+xr, 320*r+yr)
  6. sleep(100);
  7. touchClick(325*r+xr, 320*r+yr)
  8. sleep(100);
  9. touchClick(445*r+xr, 320*r+yr)
  10. sleep(100);
  11. touchClick(565*r+xr, 320*r+yr)
  12. sleep(100);
  13. touchClick(85*r+xr, 440*r+yr)
  14. sleep(100);
  15. touchClick(205*r+xr, 440*r+yr)
  16. sleep(100);
  17. touchClick(325*r+xr, 440*r+yr)
  18. sleep(100);
  19. touchClick(445*r+xr, 440*r+yr)
  20. sleep(100);
  21. touchClick(565*r+xr, 440*r+yr)
  22. sleep(100);
  23. touchClick(85*r+xr, 560*r+yr)
  24. sleep(100);
  25. touchClick(205*r+xr, 560*r+yr)
  26. sleep(100);
  27. touchClick(325*r+xr, 560*r+yr)
  28. sleep(100);
  29. touchClick(445*r+xr, 560*r+yr)
  30. sleep(100);
  31. touchClick(565*r+xr, 560*r+yr)
  32. sleep(100);
  33. touchClick(85*r+xr, 680*r+yr)
  34. sleep(100);
  35. touchClick(205*r+xr, 680*r+yr)
  36. sleep(100);
  37. touchClick(325*r+xr, 680*r+yr)
  38. sleep(100);
  39. touchClick(445*r+xr, 680*r+yr)
  40. sleep(100);
  41. touchClick(565*r+xr, 680*r+yr)
  42. sleep(500);
  43. touchClick(545*r+xr, 800*r+yr)
  44. end
複製代碼

↑用推的; 5張一排, Y值320第一排,440第二排,560第三排,680第四排; 545,800是分解鈕

↓下面是10張20張30張40張的修改
  1. function clean(x)
  2.   if x=="10" then
  3.    touchClick(545*r+xr, 800*r+yr)
  4.    sleep(3000);
  5.    touchClick(600*r+xr,156*r+yr)
  6.    sleep(1000)
  7.    touchClick(46*r+xr,690*r+yr)
  8.    sleep(1000)
  9.    touchClick(560*r+xr,250*r+yr)
  10.    sleep(1000)
  11.    clean2()
  12.    sleep(2000);
  13.    touchClick(204*r+xr, 538*r+yr )
  14.    sleep(300)
  15.    touchClick(204*r+xr, 538*r+yr )
  16.    sleep(3000)
  17.    net()
  18.    sleep(500);
  19.    input(4)
  20.    sleep(500)
  21.    input(4);
  22.   end
  23.   if x=="20" then
  24.    touchClick(545*r+xr, 800*r+yr)
  25.    sleep(3000);
  26.    touchClick(600*r+xr,156*r+yr)
  27.    sleep(1000)
  28.    touchClick(46*r+xr,690*r+yr)
  29.    sleep(1000)
  30.    touchClick(560*r+xr,250*r+yr)
  31.    sleep(1000)
  32.    clean3()
  33.    sleep(2000);
  34.    touchClick(204*r+xr, 538*r+yr )
  35.    sleep(300)
  36.    touchClick(204*r+xr, 538*r+yr )
  37.    sleep(3000)
  38.    net()
  39.    sleep(500);
  40.    input(4)
  41.    sleep(500)
  42.    input(4)
  43.   end
  44.   if x=="30" then
  45.    touchClick(545*r+xr, 800*r+yr)
  46.    sleep(3000);
  47.    touchClick(600*r+xr,156*r+yr)
  48.    sleep(1000)
  49.    touchClick(46*r+xr,690*r+yr)
  50.    sleep(1000)
  51.    touchClick(560*r+xr,250*r+yr)
  52.    sleep(1000)
  53.    clean3()
  54.    sleep(2000);
  55.    touchClick(204*r+xr, 538*r+yr )
  56.    sleep(300)
  57.    touchClick(204*r+xr, 538*r+yr )
  58.    sleep(3000)
  59.    net()
  60.    sleep(500);
  61.    clean2()
  62.    sleep(2000);
  63.    touchClick(204*r+xr, 538*r+yr )
  64.    sleep(300)
  65.    touchClick(204*r+xr, 538*r+yr )
  66.    sleep(3000);
  67.    net()
  68.    sleep(500)
  69.    input(4)
  70.    sleep(500)
  71.    input(4)
  72.   end
  73.   if x=="40" then
  74.    touchClick(545*r+xr, 800*r+yr)
  75.    sleep(3000);
  76.    touchClick(600*r+xr,156*r+yr)
  77.    sleep(1000)
  78.    touchClick(46*r+xr,690*r+yr)
  79.    sleep(1000)
  80.    touchClick(560*r+xr,250*r+yr)
  81.    sleep(1000)
  82.    clean3()
  83.    sleep(2000);
  84.    touchClick(204*r+xr, 538*r+yr )
  85.    sleep(300)
  86.    touchClick(204*r+xr, 538*r+yr )
  87.    sleep(3000)
  88.    net()
  89.    sleep(500);
  90.    clean3()
  91.    sleep(2000);
  92.    touchClick(204*r+xr, 538*r+yr )
  93.    sleep(300)
  94.    touchClick(204*r+xr, 538*r+yr )
  95.    sleep(3000);
  96.    net()
  97.    sleep(500)
  98.    input(4)
  99.    sleep(500)
  100.    input(4)
  101.   end
  102. end
複製代碼

↑點確定的按鈕位置204,538; 其中的46, 690是低星賣卡(1-2星鈕位置)

↓還有就是UI宣告設定部份要修改
  1. createTextViewEx("ChangeSet2","start18","自動分解:")
  2. createRadioBoxEx("ChangeSet2","clean1","否",true)
  3. createRadioBoxEx("ChangeSet2","clean1","10",false)
  4. createRadioBoxEx("ChangeSet2","clean1","20",false)
  5. createRadioBoxEx("ChangeSet2","clean1","30",false)
  6. createRadioBoxEx("ChangeSet2","clean1","40",false)
  7. createTextViewEx("ChangeSet2","pcs1"," 張")
複製代碼

↑其中10-40的"張"省略掉了, 因為設置顯示會看不到40的
對應其第三張的代碼

ps.由於我的機子解析度是1080*1920, 以上是由此解析度回推,
    算出作者開發版本的解析度768*1024其中的 r ,xr ,yr的值而回推的數值
    不保証其它解析度可否正常
用Android 就來Android 台灣中文網(https://apk.tw)
回覆 支持 反對

使用道具 舉報

9
 樓主| him532 | 收聽TA | 只看該作者
發表於 2016-1-5 22:08
感謝 大大點醒  我知道怎麼修改了
用Android 就來Android 台灣中文網(https://apk.tw)
回覆 支持 反對

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則