pafuya
Junior Member

Posts: 11
|
腳本編寫疑問
Feb 23, 2021 16:28:14 GMT
pafuya 發表於 Feb 23, 2021 16:28:14 GMT
------ 20 -----
touchList[index] = {target = "U.png", region = Region(184, 1534, 260, 260), id = "20", action = 'touchDown(matchResult); wait(0); touchMove( matchResult:offset(660, -463)); wait(0.25); touchUp( matchResult:offset(660, -463))'}
index = index + 1
20為"找到U圖時 按住U圖 拖移至座標(660,-463) 延時0.25秒後放開"
------ 17 -----
touchList[index] = {target = "R.png", region = Region(778, 1930, 300, 260), id = "R", action ='touchDown(Location(923, 751)); wait(0) ;touchMove(Location(-932, -263)); wait(0.25);touchUp(Location(-932, -263))'}
index = index + 1
17是我想要"找到R圖時 按住座標(923,751) 拖移至座標(-932,-263) 延時0.25秒後放開"
但是不知道指令是否有打錯 可以執行 但沒有動作 並且找到R圖時自己關閉了腳本
|
|
|
AnkuLua 發表於 Feb 24, 2021 7:26:32 GMT
座標沒有負的 左上角座標是(0, 0) 往右為x 增加 往下為y 增加
腳本停止如果有出對話框,請附上對話框截圖
|
|