|
lunlun 發表於 May 12, 2018 7:09:28 GMT
我使用下面的actionList, 發現它不會有touchUp, 而且會一直重覆的從p1 -> ... -> p12 -> p1 -> ... -> p12 -> ... actionList = { {action = "touchDown", target = p1}, {action = "wait", target = 0.1}, {action = "touchMove", target = p2}, {action = "touchMove", target = p3}, {action = "touchMove", target = p4}, {action = "touchMove", target = p5}, {action = "touchMove", target = p6}, {action = "touchMove", target = p7}, {action = "touchMove", target = p8}, {action = "touchMove", target = p9}, {action = "touchMove", target = p10}, {action = "touchMove", target = p11}, {action = "touchMove", target = p12}, {action = "touchUp", target = p12}, }
但如果我拿掉其中一個touchMove, 一切就正常了
|
|
|
lunlun 發表於 May 14, 2018 14:46:03 GMT
今天繼續試了一陣子後, 發現它應該不是沒有touchUp, 而是一直重覆actionList裡的action. 重覆個2,3輪之後, 就出現以下的錯誤 Runtime error: java.io.IOException: Socket read timeout.Socket read timeout.
|
|
|
AnkuLua 發表於 May 14, 2018 15:10:02 GMT
請給較完整的腳本 請在 touchUp 後加入適當的 wait()看看 也可以試試設定裡的 "(BETA)快速點擊與觸擊"
|
|
|
lunlun 發表於 May 15, 2018 1:08:04 GMT
試過加wait(), 還是沒用 function dragFields(p1, offsetX, offsetY) local p2 = p1:offset(offsetX, offsetY) local p3 = p2:offset(-385, 70) local p4 = p3:offset(655, -330) local p5 = p3:offset(730, -300) local p6 = p3:offset(60, 40) local p7 = p3:offset(110, 75) local p8 = p3:offset(785, -265) local p9 = p3:offset(855, -235) local p10 = p3:offset(170, 120) local p11 = p3:offset(240, 150) local p12 = p3:offset(920, -200) local actionList = { {action = "touchDown", target = p1}, {action = "wait", target = 0.2}, {action = "touchMove", target = p2}, {action = "touchMove", target = p3}, {action = "touchMove", target = p4}, {action = "touchMove", target = p5}, {action = "touchMove", target = p6}, {action = "touchMove", target = p7}, {action = "touchMove", target = p8}, {action = "touchMove", target = p9}, {action = "touchMove", target = p10}, {action = "touchMove", target = p11}, {action = "touchMove", target = p12, {action = "wait", target = 0.2}, {action = "touchUp", target = pos12}, {action = "wait", target = 0.2}, }
setManualTouchParameter(5, 10) manualTouch(actionList) end
"(BETA)快速點擊與觸擊"剛有簡單試了一下, 似乎是OK, 但可能要微調一下參數, 我再試試
|
|
|
lunlun 發表於 May 16, 2018 14:32:04 GMT
今天試了打開"(BETA)快速點擊與觸擊", 移動變超慢, 不管參數怎麼調都沒用 還有別招嗎?@@
|
|
|
lunlun 發表於 May 17, 2018 14:30:57 GMT
自問自答, 最後是分兩個manualTouch才解決了
|
|