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 use it ?!!! #21

Open
ColdEight opened this issue Aug 31, 2022 · 7 comments
Open

how to use it ?!!! #21

ColdEight opened this issue Aug 31, 2022 · 7 comments

Comments

@ColdEight
Copy link

i have debain system
I'm using scrcpy and i found this tool to make device connecting automatic
i follow all steps but when reach to this path ~/.cargo/config not found Config file so i make one I'm not sure is it the right way ?
and after finish everything what i shall i do ?

@rom1v
Copy link
Owner

rom1v commented Aug 31, 2022

i follow all steps

Which ones? What did you execute?

You must install the the Rust toolchain first to build it: https://www.rust-lang.org/tools/install

@Rodriguez299
Copy link

Good afternoon. I have two Android devices. tablet and a smartphone. On the tablet The SCRCPY works extremely well. On the smartphone (GALAXY NOTE 20 ULTRA) I can not connect. How could I know why this happens. Thank you.

@Rodriguez299
Copy link

A "FLASKH" APPEARS ON THE SCREEN AND DISAPPEARS. Nothing happens

@Rodriguez299
Copy link

"FLASH"

@ColdEight
Copy link
Author

i follow all steps

Which ones? What did you execute?

You must install the the Rust toolchain first to build it: https://www.rust-lang.org/tools/install

yes i already install it
i follow all your steps should i execute a file after finish all steps ?

@mataiotes
Copy link

mataiotes commented Feb 15, 2024

I can't write english well
my env : windows 64bit, android

plug in Phone

  1. find devices serial
    install scrcpy folder open "command prompt"
    ex) ~\scrcpy-win64-v2.3.1>

Ctrl C+V
adb devices
this's list of devices serial and copy anywhere to use

2-1. install rust
2-2. intall visual studio C++

3-1. download source
https://github.com/rom1v/autoadb
Code Button at the top of the page
and Local, download ZIP "autoadb-master" & Unzip

3-2. build
autoadb-master folder
open "PowerShell" //must be PowerShell not command prompt
windows key + R, shell:startup <= PowerShell

PowerShell in autoadb-master folder
ex) ~~~~\autoadb-master>

Ctrl C+V
cargo build --release
created target folder and close PowerShell

3-3. check command autoadb
into "target" folder, into "release" folder
open "command prompt" "Must command prompt"
windows key + R, cmr
in command prompt
ex) ~\autoadb-master\targer\release>

Ctrl C+V
autoadb printf 'Device connected\n'
and check serial before copyed
and close command prompt

3-4. autoadb setting
ctrl+c, all file in release folder and ctrl+v, all file to "scrcpy folder"
"scrcpy folder" where "scrcpy.exe" is located

and open must "command prompt"
ex) ~\scrcpy~~~>

Ctrl C+V
autoadb scrcpy -s copyed_serial
input copyed serial instead of "copyed_serial"

you did it
unplug & re type or copy "autoadb scrcpy -s copyed_serial"
wait for it, wait for it just "_" not working
now plug phone
and pop up the phone screen

======================================================
not enough

I want start windows auto stard autoadb and waiting pluging
if plug in run without console

  1. you don't miss copyed_serial
    still using

  2. copy "scrcpy-noconsole.vbs" file
    ex) installed_scrcpy_folder\scrcpy-noconsole.vbs

paste same local &rename the copy to you want
ex) you_want.vbs

open "you_want.vbs" to Notepad
strCommand = "cmd /c scrcpy.exe"
to
strCommand = "cmd /c autoadb scrcpy -s copyed_serial"
and save

Create Shortcut for you_want.vbs
https://www.wikihow.com/Create-a-Desktop-Shortcut

shortcut file
Ctrl X
This PC \ C Dive\User\the_name_you_set\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Ctrl V

  1. check
    Now computer turn off & on
    plug in usb-c to Phone
    "pop up"

  2. Apply options
    if you want apply option
    open to Notepad "you_want.vbs" file

strCommand = "cmd /c autoadb scrcpy -s copyed_serial"
paste "copyed_serial" after
ex)
strCommand = "cmd /c autoadb scrcpy -s copyed_serial --turn-screen-off --stay-awake"
save

E N D

@mataiotes
Copy link

mataiotes commented Mar 5, 2024

just download and upzip this zip file to scrcpy folder in exists scrcpy.exe file
autoadb.zip

ex) i'm using noconsole, autodb, windows64bit and android12.
"scrcpy-noconsole.vbs"file edit to notepad
cmd /c scrcpy.exe
upper sentence chage to below
cmd /c autoadb scrcpy -s your_device_serial

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

4 participants