Android 台灣中文網
標題:
腳本修改問題
[打印本頁]
作者:
him532
時間:
2015-12-27 11:16
標題:
腳本修改問題
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
改完這個 最後要修改確定刪除 有大大 知道後面怎麼打法
作者:
hosing0072000
時間:
2015-12-27 18:46
我想知修改買20張卡係點改?
作者:
metoogo
時間:
2015-12-29 12:12
什么意思啊?意思是说自动卖卡?
作者:
him532
時間:
2015-12-29 23:24
metoogo 發表於 2015-12-29 12:12
什么意思啊?意思是说自动卖卡?
恩 最後點擊 確定 賣卡 不會設定
作者:
youta
時間:
2016-1-3 00:31
原作者大概沒玩了。一次20張要從clean2()子巨集著手
作者:
youta
時間:
2016-1-3 00:38
點確定分解卡片則由 touchClick(150*r+xr, 650*r+yr) sleep(300) touchClick(150*r+xr, 650*r+yr) sleep(3000)去修改,因為確定位置不一樣了,要找出對應的數字位置。
作者:
a3556959
時間:
2016-1-3 19:24
都沒有人更新腳本上傳 都沒得用了
作者:
youta
時間:
2016-1-5 21:48
本帖最後由 youta 於 2016-1-6 03:54 編輯
原本10張的代碼
function clean2()
sleep(100);
touchClick(85*r+xr, 320*r+yr)
sleep(100);
touchClick(205*r+xr, 320*r+yr)
sleep(100);
touchClick(325*r+xr, 320*r+yr)
sleep(100);
touchClick(445*r+xr, 320*r+yr)
sleep(100);
touchClick(565*r+xr, 320*r+yr)
sleep(100);
touchClick(85*r+xr, 440*r+yr)
sleep(100);
touchClick(205*r+xr, 440*r+yr)
sleep(100);
touchClick(325*r+xr, 440*r+yr)
sleep(100);
touchClick(445*r+xr, 440*r+yr)
sleep(100);
touchClick(565*r+xr, 440*r+yr)
sleep(500);
touchClick(545*r+xr, 800*r+yr)
end
複製代碼
20張的代碼
function clean3()
sleep(100);
touchClick(85*r+xr, 320*r+yr)
sleep(100);
touchClick(205*r+xr, 320*r+yr)
sleep(100);
touchClick(325*r+xr, 320*r+yr)
sleep(100);
touchClick(445*r+xr, 320*r+yr)
sleep(100);
touchClick(565*r+xr, 320*r+yr)
sleep(100);
touchClick(85*r+xr, 440*r+yr)
sleep(100);
touchClick(205*r+xr, 440*r+yr)
sleep(100);
touchClick(325*r+xr, 440*r+yr)
sleep(100);
touchClick(445*r+xr, 440*r+yr)
sleep(100);
touchClick(565*r+xr, 440*r+yr)
sleep(100);
touchClick(85*r+xr, 560*r+yr)
sleep(100);
touchClick(205*r+xr, 560*r+yr)
sleep(100);
touchClick(325*r+xr, 560*r+yr)
sleep(100);
touchClick(445*r+xr, 560*r+yr)
sleep(100);
touchClick(565*r+xr, 560*r+yr)
sleep(100);
touchClick(85*r+xr, 680*r+yr)
sleep(100);
touchClick(205*r+xr, 680*r+yr)
sleep(100);
touchClick(325*r+xr, 680*r+yr)
sleep(100);
touchClick(445*r+xr, 680*r+yr)
sleep(100);
touchClick(565*r+xr, 680*r+yr)
sleep(500);
touchClick(545*r+xr, 800*r+yr)
end
複製代碼
↑用推的; 5張一排, Y值320第一排,440第二排,560第三排,680第四排; 545,800是分解鈕
↓下面是10張20張30張40張的修改
function clean(x)
if x=="10" then
touchClick(545*r+xr, 800*r+yr)
sleep(3000);
touchClick(600*r+xr,156*r+yr)
sleep(1000)
touchClick(46*r+xr,690*r+yr)
sleep(1000)
touchClick(560*r+xr,250*r+yr)
sleep(1000)
clean2()
sleep(2000);
touchClick(204*r+xr, 538*r+yr )
sleep(300)
touchClick(204*r+xr, 538*r+yr )
sleep(3000)
net()
sleep(500);
input(4)
sleep(500)
input(4);
end
if x=="20" then
touchClick(545*r+xr, 800*r+yr)
sleep(3000);
touchClick(600*r+xr,156*r+yr)
sleep(1000)
touchClick(46*r+xr,690*r+yr)
sleep(1000)
touchClick(560*r+xr,250*r+yr)
sleep(1000)
clean3()
sleep(2000);
touchClick(204*r+xr, 538*r+yr )
sleep(300)
touchClick(204*r+xr, 538*r+yr )
sleep(3000)
net()
sleep(500);
input(4)
sleep(500)
input(4)
end
if x=="30" then
touchClick(545*r+xr, 800*r+yr)
sleep(3000);
touchClick(600*r+xr,156*r+yr)
sleep(1000)
touchClick(46*r+xr,690*r+yr)
sleep(1000)
touchClick(560*r+xr,250*r+yr)
sleep(1000)
clean3()
sleep(2000);
touchClick(204*r+xr, 538*r+yr )
sleep(300)
touchClick(204*r+xr, 538*r+yr )
sleep(3000)
net()
sleep(500);
clean2()
sleep(2000);
touchClick(204*r+xr, 538*r+yr )
sleep(300)
touchClick(204*r+xr, 538*r+yr )
sleep(3000);
net()
sleep(500)
input(4)
sleep(500)
input(4)
end
if x=="40" then
touchClick(545*r+xr, 800*r+yr)
sleep(3000);
touchClick(600*r+xr,156*r+yr)
sleep(1000)
touchClick(46*r+xr,690*r+yr)
sleep(1000)
touchClick(560*r+xr,250*r+yr)
sleep(1000)
clean3()
sleep(2000);
touchClick(204*r+xr, 538*r+yr )
sleep(300)
touchClick(204*r+xr, 538*r+yr )
sleep(3000)
net()
sleep(500);
clean3()
sleep(2000);
touchClick(204*r+xr, 538*r+yr )
sleep(300)
touchClick(204*r+xr, 538*r+yr )
sleep(3000);
net()
sleep(500)
input(4)
sleep(500)
input(4)
end
end
複製代碼
↑點確定的按鈕位置204,538; 其中的46, 690是低星賣卡(1-2星鈕位置)
↓還有就是UI宣告設定部份要修改
createTextViewEx("ChangeSet2","start18","自動分解:")
createRadioBoxEx("ChangeSet2","clean1","否",true)
createRadioBoxEx("ChangeSet2","clean1","10",false)
createRadioBoxEx("ChangeSet2","clean1","20",false)
createRadioBoxEx("ChangeSet2","clean1","30",false)
createRadioBoxEx("ChangeSet2","clean1","40",false)
createTextViewEx("ChangeSet2","pcs1"," 張")
複製代碼
↑其中10-40的"張"省略掉了, 因為設置顯示會看不到40的
對應其第三張的代碼
ps.由於我的機子解析度是1080*1920, 以上是由此解析度回推,
算出作者開發版本的解析度768*1024其中的 r ,xr ,yr的值而回推的數值
不保証其它解析度可否正常
作者:
him532
時間:
2016-1-5 22:08
感謝 大大點醒 我知道怎麼修改了
歡迎光臨 Android 台灣中文網 (https://apk.tw/)
Powered by Discuz! X3.1