adb shell input swipe%startX%%startY%%endX%%endY%rem 等待一段时间 timeout/t2/nobreak>nul rem 检查是否还能继续滑动set/a checkY=startY-500adb shell input swipe%startX%%startY%%endX%%checkY%timeout/t2/nobreak>nul adb shell dumpsys input_method|findstr/c:"mInputShown=false">nulif%errorlevel%...
adb shell input swipe startX startY endX endY 500 从startX,startY坐标滑动到endX,endY坐标 最后一个参数为总体时间(ms) 长按 长按就是特殊的滑动,坐标不变 adb shell input swipe startX startY startX startY 500 输入文字 adb shell input text 内容 按键事件 adb shell input keyevent 82 最后一...
adb shell input text"insert%stext%shere" 注意:%s表示空格。 使用adb shell input tap命令来模拟屏幕点击事件,例如: 代码语言:javascript 代码运行次数:0 复制 Cloud Studio代码运行 adb shell input tap5001450 表示在屏幕上(500,1450)的坐标点上进行一次点击。 使用adb shell input swipe命令来模拟手势滑动事件,...
adb shell input keyevent 224 # 点亮屏幕 adb shell input keyevent 223 # 熄灭屏幕 # 点击屏幕 adb shell input tap <X> <Y> # x,y为坐标位置 # 滑屏 起始点x坐标 起始点y坐标 结束点x坐标 结束点y坐标。 adb shell input swipe 300 1000 300 500 # 向上滑动 adb shell input swipe 300 100 30...
adb shell input tap 100 100 2.滑动 adb shell input swipe x1 y1 x2 y2 adb input touchscreen swipe x1 y1 x2 y2 100 adb shell input swipe 100 100 400 100 300 #左往右 adb shell input swipe 400 100 100 100 300 #右往左 adb shell input swipe 100 100 100 400 300 #上往下 ...
usage:input text <string> input keyevent <key code number or name> input tap <x> <y> input swipe <x1> <y1> <x2> <y2> 1. 2. 3. 4. 以下是Android 4.4+的input命令: usage: input ... input text <string> input keyevent <key code number or name> ...
adb shell screenrecord /sdcard/filename.mp4 screenrecord 参数: 参数 含义 --size WIDTHxHEIGHT 视频的尺寸,比如 1280x720,默认是屏幕分辨率。 --bit-rate RATE 视频的比特率,默认是 4Mbps。 --time-limit TIME 录制时长,单位秒。 --verbose 输出更多信息。
adb shell input keyevent 223 滑动解锁 如果锁屏没有密码,是通过滑动手势解锁,那么可以通过input swip...
如上,input后可以跟很多参数, text相当于输入内容,keyevent相当于手机物理或是屏幕按键,tap相当于touch事件,swipe相当于滑动。下面我们来学习相应的用法。 1、input text用法 C:\Documents and Settings\Administrator>adb shell shell@lentk6735_66t_l1:/ $ input text OuyangPeng ...