Send any Unicode character to your Android device
Project description
Send any Unicode character to your Android device
pip install adb-unicode-keyboard
from adb_unicode_keyboard import AdbUnicodeKeyboard
from time import sleep
adbkeyboard = AdbUnicodeKeyboard(adb_path = "C:\\Users\\Gamer\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe",
deviceserial = "localhost:5735", exit_keys="ctrl+x")
adbkeyboard.connect_to_adb()
oldkeyboard = adbkeyboard.get_all_installed_keyboards()[0]
adbkeyboard.install_adb_keyboard() # installs "https://github.com/senzhk/ADBKeyBoard/raw/master/ADBKeyboard.apk"
adbkeyboard.activate_adb_keyboard()
if adbkeyboard.is_keyboard_shown():
adbkeyboard.send_unicode_text('öü')
adbkeyboard.send_unicode_text_with_delay('öü', delay_range=(0.05, 0.3))
sleep(1)
adbkeyboard.longpress_66_keycode_enter() # not executed with ADBKeyBoard / all keycodes are available as methods
sleep(1)
adbkeyboard.press_66_keycode_enter() # not executed with ADBKeyBoard / all keycodes are available as methods
adbkeyboard.disable_adb_keyboard(new_keyboard_name=None) # If no keyboard name is passed, will be reset to default
adbkeyboard.disable_adb_keyboard(new_keyboard_name=oldkeyboard)
#adbkeyboard.uninstall_adb_keyboard()
# Chaining is possible
adbkeyboard.connect_to_adb().activate_adb_keyboard().send_unicode_text('böb&oö').disable_adb_keyboard()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
adb_unicode_keyboard-0.10.tar.gz
(11.4 kB
view hashes)
Built Distribution
Close
Hashes for adb_unicode_keyboard-0.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8acfe9960c5113f92b2d10985c32dacf7ee1d57063c48985764a35770356aa4 |
|
MD5 | 2176631cfd8bcaf2802a5ff2546f501f |
|
BLAKE2b-256 | 93fd8763e8aa55a2c932dd86aafe4a91456804fea3a6cc28b6c295974acfa314 |
Close
Hashes for adb_unicode_keyboard-0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0daf8db2cd19ef8414351a3ec0999ef5ffccaf7ac4f762012de3497ce9741de9 |
|
MD5 | 962006838f03e1011ad0de9290326559 |
|
BLAKE2b-256 | ee9872b7c6e9f626ed1e89f5ba861ac1b84ed9c2af5b15651db971de91e3b992 |