Expand description
§zxtouch
ios 按键自动化(连点器)、需越狱并已经安装 zxtouch.deb
§功能
§显示弹窗
use zxtouch::zx_touch::{ZxTouch};
let mut touch = ZxTouch::new("192.168.3.113", 6000);//!
touch.connect().await.unwrap();
touch.show_alert_box("hello", "hi", 3).await.unwrap();
touch.close().await.unwrap();
§点击屏幕
use zxtouch::zx_touch::{TouchFinger, ZxTouch};
let mut touch = ZxTouch::new("192.168.3.113", 6000);
touch.connect().await.unwrap();
touch.touch(200, 200).await.unwrap();
touch.close().await.unwrap();
§长按屏幕
use zxtouch::zx_touch::{TouchFinger, ZxTouch};
let mut touch = ZxTouch::new("192.168.3.113", 6000);
touch.connect().await.unwrap();
touch.touch_long(200, 200,500).await.unwrap();
touch.close().await.unwrap();
§滑动屏幕
use zxtouch::zx_touch::{TouchFinger, ZxTouch};
let mut touch = ZxTouch::new("192.168.3.113", 6000);
touch.connect().await.unwrap();
touch.swipe(200, 200, 200, 500, 100).await.unwrap();
touch.close().await.unwrap();
§文本输入
use zxtouch::zx_touch::ZxTouch;
let mut touch = ZxTouch::new("192.168.3.113", 6000);
touch.connect().await.unwrap();
touch.text("hello").await.unwrap();
touch.close().await.unwrap();
§打开应用
use zxtouch::zx_touch::ZxTouch;let mut touch = ZxTouch::new("192.168.3.113", 6000);
touch.connect().await.unwrap();
touch
.open_app("com.netskao.dumpdecrypter")
.await
.unwrap();
touch.close().await.unwrap();
§睡眠
use zxtouch::zx_touch::ZxTouch;let mut touch = ZxTouch::new("192.168.3.113", 6000);
touch.connect().await.unwrap();
touch.show_alert_box("hello", "hi", 1000).await.unwrap();
touch.sleep(10 * 1000).await.unwrap(); //10秒
touch.show_alert_box("hello", "hi", 1000).await.unwrap();
touch.close().await.unwrap();