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

How to delete the attached adb script #1387

Closed
lcx19950201 opened this issue May 13, 2020 · 8 comments
Closed

How to delete the attached adb script #1387

lcx19950201 opened this issue May 13, 2020 · 8 comments

Comments

@lcx19950201
Copy link

I wrote some adb scripts to control the phone, but the accompanying adb scripts conflicted, such as using 'w''s''d''a' to control, and the right mouse button. At the same time I found that my adb script has a short time (~ 0.05s) delay, and sometimes does not work, I use the python + adb method.
Please tell me how to delete the internal adb, if you can, can you try to solve my problem? Thank you

@rom1v
Copy link
Collaborator

rom1v commented May 13, 2020

What do you mean by "adb script"? What do you mean by "conflicted"?

@lcx19950201
Copy link
Author

adb code:db shell input tap 1280 560
Because scrpy comes with some adb operations, such as the right mouse button is the return button, how do I delete them

@rom1v
Copy link
Collaborator

rom1v commented May 13, 2020

scrcpy --no-control

@lcx19950201
Copy link
Author

I want to assign a new adb command to the right mouse button (

@rom1v
Copy link
Collaborator

rom1v commented May 13, 2020

Scrcpy does not use adb shell input … to inject events: #231 (comment)

For now, it is not possible to reassign mouse buttons. But there is already feature requests for that: #1302 to disable, and there are other to "remap" shortcuts.

@lcx19950201
Copy link
Author

I created a new python script to output adb commands through os, but the right mouse button is occupied.

@rom1v
Copy link
Collaborator

rom1v commented May 13, 2020

Could you share your script, because I don't understand what you mean by "the right mouse button is occupied". If you execute adb shell input ... commands, it's totally independant of scrcpy.

@lcx19950201
Copy link
Author

@rom1v rom1v closed this as completed Oct 27, 2021
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

2 participants