首页 > 代码库 > simulate_click

simulate_click

#!/bin/bash


let actual_x=104+144*$[$2-1]
let actual_y=945+144*$[$1-1]

adb shell input tap ${actual_x} ${actual_y}
adb shell input tap ${actual_x} ${actual_y}

echo "双击色块坐标:($1,$2)完成. 实际点击位置:(${actual_x},${actual_y})"

simulate_click