2023-03-04 07:56:35 +00:00
|
|
|
# On Windows
|
|
|
|
|
|
|
|
## Install
|
|
|
|
|
|
|
|
Download the [latest release]:
|
|
|
|
|
2023-07-14 21:09:44 +00:00
|
|
|
- [`scrcpy-win64-v2.1.1.zip`][direct-win64] (64-bit)
|
|
|
|
<sub>SHA-256: `f77281e1bce2f9934617699c581f063d5b327f012eff602ee98fb2ef550c25c2`</sub>
|
|
|
|
- [`scrcpy-win32-v2.1.1.zip`][direct-win32] (32-bit)
|
|
|
|
<sub>SHA-256: `ef7ae7fbe9449f2643febdc2244fb186d1a746a3c736394150cfd14f06d3c943`</sub>
|
2023-03-04 07:56:35 +00:00
|
|
|
|
2023-03-12 01:59:44 +00:00
|
|
|
[latest release]: https://github.com/Genymobile/scrcpy/releases/latest
|
2023-07-14 21:09:44 +00:00
|
|
|
[direct-win64]: https://github.com/Genymobile/scrcpy/releases/download/v2.1.1/scrcpy-win64-v2.1.1.zip
|
|
|
|
[direct-win32]: https://github.com/Genymobile/scrcpy/releases/download/v2.1.1/scrcpy-win32-v2.1.1.zip
|
2023-03-04 07:56:35 +00:00
|
|
|
|
|
|
|
and extract it.
|
|
|
|
|
2023-05-16 10:53:58 +00:00
|
|
|
Alternatively, you could install it from packages manager, like [Winget]:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
winget install scrcpy
|
|
|
|
```
|
|
|
|
|
|
|
|
or [Chocolatey]:
|
2023-03-04 07:56:35 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
choco install scrcpy
|
|
|
|
choco install adb # if you don't have it yet
|
|
|
|
```
|
|
|
|
|
|
|
|
or [Scoop]:
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
scoop install scrcpy
|
|
|
|
scoop install adb # if you don't have it yet
|
|
|
|
```
|
|
|
|
|
2023-05-16 10:53:58 +00:00
|
|
|
[Winget]: https://github.com/microsoft/winget-cli
|
2023-03-04 07:56:35 +00:00
|
|
|
[Chocolatey]: https://chocolatey.org/
|
|
|
|
[Scoop]: https://scoop.sh
|
|
|
|
|
|
|
|
_See [build.md](build.md) to build and install the app manually._
|
|
|
|
|
|
|
|
|
|
|
|
## Run
|
|
|
|
|
2023-03-13 07:40:31 +00:00
|
|
|
_Make sure that your device meets the [prerequisites](/README.md#prerequisites)._
|
|
|
|
|
2023-03-04 07:56:35 +00:00
|
|
|
Scrcpy is a command line application: it is mainly intended to be executed from
|
|
|
|
a terminal with command line arguments.
|
|
|
|
|
|
|
|
To open a terminal at the expected location, double-click on
|
|
|
|
`open_a_terminal_here.bat` in your scrcpy directory, then type your command. For
|
|
|
|
example, without arguments:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
scrcpy
|
|
|
|
```
|
|
|
|
|
|
|
|
or with arguments (here to disable audio and record to `file.mkv`):
|
|
|
|
|
|
|
|
```
|
|
|
|
scrcpy --no-audio --record=file.mkv
|
|
|
|
```
|
|
|
|
|
|
|
|
Documentation for command line arguments is available:
|
|
|
|
- `scrcpy --help`
|
|
|
|
- on [github](/README.md)
|
|
|
|
|
|
|
|
To start scrcpy directly without opening a terminal, double-click on one of
|
|
|
|
these files:
|
|
|
|
- `scrcpy-console.bat`: start with a terminal open (it will close when scrcpy
|
|
|
|
terminates, unless an error occurs);
|
|
|
|
- `scrcpy-noconsole.vbs`: start without a terminal (but you won't see any error
|
|
|
|
message).
|
|
|
|
|
|
|
|
_Avoid double-clicking on `scrcpy.exe` directly: on error, the terminal would
|
|
|
|
close immediately and you won't have time to read any error message (this
|
|
|
|
executable is intended to be run from the terminal). Use `scrcpy-console.bat`
|
|
|
|
instead._
|
|
|
|
|
|
|
|
If you plan to always use the same arguments, create a file `myscrcpy.bat`
|
|
|
|
(enable [show file extensions] to avoid confusion) containing your command, For
|
|
|
|
example:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
scrcpy --prefer-text --turn-screen-off --stay-awake
|
|
|
|
```
|
|
|
|
|
|
|
|
[show file extensions]: https://www.howtogeek.com/205086/beginner-how-to-make-windows-show-file-extensions/
|
|
|
|
|
|
|
|
Then just double-click on that file.
|
|
|
|
|
|
|
|
You could also edit (a copy of) `scrcpy-console.bat` or `scrcpy-noconsole.vbs`
|
|
|
|
to add some arguments.
|