顯示具有 char device 標籤的文章。 顯示所有文章
顯示具有 char device 標籤的文章。 顯示所有文章

2011年1月28日

Android input binary tool

Android 有個小程式可以模擬鍵盤操作
用法如下:
輸入字串
adb shell input text "ANDROID"
如果要輸入WiFi密碼是還不錯用,有些符號不行,如"#"
點擊螢幕上任一點
Input touchscreen tap x y
滑動至另一點
Input touchscreen swipe x1 y 1 x2 y2
輸入 keyevent
adb shell input keyevent 29    # for key 'A'

2010年5月4日

virtual user input


如果想模擬使用者操作滑鼠、鍵盤等輸入裝置,可利用二種方式:xdotool或uinput,以下分別介紹。