Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i create a script to paste content from windows to android base on this project #33

Closed
ssddi456 opened this issue Nov 19, 2019 · 3 comments

Comments

@ssddi456
Copy link

the script can get from here

  1. install adbkeyboard on your phone
  2. download the scripts and add it to your path,
  3. connect to your phone with adb
  4. when you want to paste content ,just run adbpaste

the ones who cannot execute ps1 scripts can resolve it here

@senzhk
Copy link
Owner

senzhk commented Jan 6, 2020

Cool. Thanks. Added in README>

@sunshinewithmoonlight
Copy link

sunshinewithmoonlight commented May 24, 2020

Hello, I have a python script that implements the same function as your ps script. :3

import os
import base64

# os.system("adb devices")

chars = '的广告'
charsb64 = str(base64.b64encode(chars.encode('utf-8')))[1:]
# print(charsb64)

os.system("adb shell am broadcast -a ADB_INPUT_B64 --es msg %s" %charsb64)

Thanks to https://stackoverflow.com/questions/33294213/how-to-decode-unicode-in-a-chinese-text

@senzhk
Copy link
Owner

senzhk commented May 30, 2020

Thanks.

@senzhk senzhk closed this as completed May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants