[go: up one dir, main page]

Menu

Tree [b3f8a8] 0.1.1 /
 History

HTTPS access


File Date Author Commit
 adb-bin 2024-10-24 BHznJNs BHznJNs [c25459] use customtkinter, pairing window appended
 android 2024-10-26 BHznJNs BHznJNs [ab60df] mouse scroll & keyboard keys
 input 2024-10-26 BHznJNs BHznJNs [b3f8a8] ui bug fixed
 server 2024-10-26 BHznJNs BHznJNs [4d3736] replace all `exit` call with `sys.exit` call
 ui 2024-10-26 BHznJNs BHznJNs [b3f8a8] ui bug fixed
 .gitignore 2024-10-26 BHznJNs BHznJNs [476ceb] i18n update & README.md and README_zh.md update
 LICENSE 2024-10-24 BHznJNs BHznJNs [755bba] LICENSE appended
 README.md 2024-10-26 BHznJNs BHznJNs [be7825] README.md update
 README_zh.md 2024-10-26 BHznJNs BHznJNs [476ceb] i18n update & README.md and README_zh.md update
 adb_controller.py 2024-10-26 BHznJNs BHznJNs [4d3736] replace all `exit` call with `sys.exit` call
 main.py 2024-10-26 BHznJNs BHznJNs [ab60df] mouse scroll & keyboard keys
 requirements.txt 2024-10-24 BHznJNs BHznJNs [c25459] use customtkinter, pairing window appended
 utils.py 2024-10-26 BHznJNs BHznJNs [476ceb] i18n update & README.md and README_zh.md update

Read Me

InputShare

InputShare enables you share keyboard and mouse of your computer with an Android device via ADB in wired / wireless way.

Features

  • Seamless Switching: Quickly switch keyboard and mouse input between the PC and Android device with hotkey.
  • Wired / Wireless Connection: Supports both wired and wireless connections for flexible input sharing.
  • Wide Compatibility: Compatible with various Android devices, not a specific brand.

Install

Note: Currently, this program is not completed yet, and there are some functions unavailable.

Go to the [release page][https://github.com/BHznJNs/InputShare/releases] and download the latest compressed package, uncompress it and the executable is in it.

Usage

You firstly need to enable the Developer Settings of your device.

For wired connection:

  1. Enable the USB Debugging in the Developer Settings page
  2. Connect your device with computer via a USB cable
  3. Just run the script with python main.py and skip steps
  4. Enjoy your mouse and keyboard on Android device

For wireless connection:

  1. Enable the Wireless Debugging in the Developer Settings page
  2. Run the script with python main.py
  3. Open Pair device with pairing code option and input the IP address and port and the pairing code into the pairing tab of connecting window
  4. Input the IP address and port in the main Wireless Debugging into the connecting tab of connection window
  5. Enjoy your mouse and keyboard on Android device

Shortcuts

The shortcuts following are available after connection

<Ctrl>+<Shift>+s: toggle the control between your computer and your Android device
<Ctrl>+<Shift>+q: quit the program

Development

Clone this repo:

git clone https://github.com/BHznJNs/InputShare
cd InputShare

Install the requirements with:

pip install -r requirements.txt

Install the pyinstaller:

pip install pyinstaller

Get the customtkinter library path

pip show customtkinter

A Location will be shown, for example: c:\users\<user_name>\appdata\local\programs\python\python310\lib\site-packages

Use this command to build (replace <CustomTkinter Location> with customtkinter library path got above):

pyinstaller --windowed --add-data "./adb-bin/;adb-bin/" --add-data "./server/scrcpy-server;server/" --add-data "<CustomTkinter Location>/customtkinter;customtkinter/" main.py