NTj
New Member
Posts: 5
|
NTj 發表於 Apr 24, 2017 10:46:15 GMT
請問manualTouch(list)是不是只能輸入一組touch down -> up, 我試著在list輸入一組以上的, 希望能辦到快速的兩次滑動動作, 好像沒有反應?
另外, 在範例中touchUp的點跟touchMove最後的點稍微不一樣(+1pixel) 這是必需要這樣作嗎?
|
|
|
AnkuLua 發表於 Apr 24, 2017 11:57:35 GMT
沒問題耶 也不需要多一點,下面這段腳本在BS1 繪畫App 上是正常的 如果不正常,可以試試在touchUp 到下一個touchDown 間插入wait
p1 = Location(100, 300) p2 = Location(400, 300) p3 = Location(400, 600) p31 = Location(401, 601) p11 = Location(600, 300) p12 = Location(1000, 300) p13 = Location(1000, 600)
setManualTouchParameter(5, 0)
timer=Timer() actionList = { {action = "touchDown", target = p1}, {action = "touchMove", target = p2}, {action = "touchMove", target = p3}, {action = "touchUp", target = p3 }
-- ,{action = "wait", target = 0.2} ,{action = "touchDown", target = p11}, {action = "touchMove", target = p12}, {action = "touchMove", target = p13}, {action = "touchUp", target = p13} } manualTouch(actionList)
|
|
NTj
New Member
Posts: 5
|
NTj 發表於 Apr 25, 2017 2:43:28 GMT
謝謝解說, 我再試試看
|
|