Loading
0

雷电模拟器模拟操作

开启一个540*960分辨率的名为test1的模拟器:

上滑模拟:

ldconsole adb --name test1 --command "shell input swipe 270 700 270 200"

下滑模拟:

ldconsole adb --name test1 --command "shell input swipe 270 200 270 700"

左滑模拟:

ldconsole adb --name test1 --command "shell input swipe 270 480 0 480"

右滑模拟:

ldconsole adb --name test1 --command "shell input swipe 270 480 540 480"

点击模拟:

ldconsole adb --name test1 --command "shell input tap 495 475"

长按模拟:

ldconsole adb --name test1 --command "shell input swipe 270 480 270 480 800"

中文输入模拟:

ldconsole action --name test1 --key call.input --value "中文输入"

模拟按键:

ldconsole action --name test1 --key call.keyboard --value back

按键值可以是: back,home,menu,volumeup,volumedown

摇一摇:

ldconsole action --name test1 --key call.shake --value null

最后编辑于:2019/12/27作者: joycode

我不入地狱,谁入地狱?

评论已关闭