[go: up one dir, main page]

Menu

Tree [4440c6] 0.4.0 /
 History

HTTPS access


File Date Author Commit
 adb-bin 2024-10-24 BHznJNs BHznJNs [c25459] use customtkinter, pairing window appended
 input 2024-11-02 BHznJNs BHznJNs [e01b59] shortcuts for not sharing
 scrcpy_client 2024-11-02 BHznJNs BHznJNs [e01b59] shortcuts for not sharing
 server 2024-11-01 BHznJNs BHznJNs [fc305c] OS tray update
 ui 2024-11-01 BHznJNs BHznJNs [fc305c] OS tray update
 .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-11-01 BHznJNs BHznJNs [63aaa2] icon update & codes refactored
 README_zh.md 2024-11-01 BHznJNs BHznJNs [63aaa2] icon update & codes refactored
 adb_controller.py 2024-10-29 BHznJNs BHznJNs [80f83d] feat: clipboard sync
 main.py 2024-11-01 BHznJNs BHznJNs [fc305c] OS tray update
 requirements.txt 2024-11-02 BHznJNs BHznJNs [4440c6] requirements.txt update
 utils.py 2024-11-01 BHznJNs BHznJNs [fc305c] OS tray 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 Android 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 executable and skip the pairing and connecting 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 executable
  3. On your Android device: 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

Shortcut Description
<Ctrl>+<Alt>+s toggle the control between your computer and your Android device
<Ctrl>+<Alt>+q quit the program
F1 Multi-task switching
F2 Return to Home
F3 Back
F4 Previous Media
F5 Play / Pause Media
F6 Next Media
F7 Volume Down
F8 Volume Up
F11 Screen Sleep
F12 Wake Up

Development

Clone this repo:

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

Install the requirements with:

pip install -r requirements.txt

Run the entry script:

python main.py

If you want to build this project by yourself, go on:

Build

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 --icon=ui/icon.ico --add-data "./adb-bin/;adb-bin/" --add-data "./server/scrcpy-server;server/" --add-data "<CustomTkinter Location>/customtkinter;customtkinter/" main.py