二指仿真滑动[免费]
rswipe
rndSwipe单指仿真滑动
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| startX | 是 | int | 起点x |
| startY | 是 | int | 起点y |
| endX | 是 | int | 终点x |
| endY | 是 | int | 终点x |
| timeStart | 否 | int | 随机延迟_起始,默认50ms |
| timeEnd | 否 | int | 随机延迟_结束,默认起始+50ms |
| timeOut | 否 | int | 滑动超时,默认2000ms |
| step | 否 | float | 滑动步进,默认0.08 |
//单指滑动
//默认方法
rSwipe.rndSwipe(200, 700, 200, 200)
sleep(1000)
//调整调整随机时间,默认50-100
rSwipe.rndSwipe(200, 700, 200, 200, 50, 80)
sleep(1000)
//调整超时时间
rSwipe.rndSwipe(200, 700, 200, 200, 50, 80, 1000)
sleep(1000)
//调整步进,默认0.08
rSwipe.step = 0.05
rSwipe.rndSwipe(200, 700, 200, 200)
sleep(1000)
rSwipe.rndSwipe(200, 700, 200, 200, 50, 80, 1000, 0.05)
sleep(1000)
| 返回值 | 类型 | 说明 |
|---|---|---|
| true/false | boolean | 是否执行成功 |
rndSwipeTwo二指仿真滑动
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| startX | 是 | int | 起点x |
| startY | 是 | int | 起点y |
| endX |