Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.microsoft.windows > #1488 > unrolled thread

What do you use to mirror & control your Android phone on Windows using the keyboard & mouse?

Started byAndy Burnelli <spam@nospam.com>
First post2022-04-17 00:33 +0100
Last post2023-09-18 18:19 -0700
Articles 20 on this page of 27 — 8 participants

Back to article view | Back to alt.comp.microsoft.windows


Contents

  What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Andy Burnelli <spam@nospam.com> - 2022-04-17 00:33 +0100
    Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Joel <joelcrump@gmail.com> - 2022-04-16 19:41 -0400
      Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Andy Burnelli <spam@nospam.com> - 2022-04-17 01:13 +0100
        Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Joel <joelcrump@gmail.com> - 2022-04-16 20:23 -0400
          Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Peter Johnson <peter@parksidewood.nospam> - 2022-04-17 15:26 +0100
            Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Andy Burnelli <spam@nospam.com> - 2022-04-17 23:32 +0100
              Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Peter Johnson <peter@parksidewood.nospam> - 2022-04-18 12:35 +0100
                Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Andy Burnelli <spam@nospam.com> - 2022-04-18 20:27 +0100
            Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Andy Burnelli <spam@nospam.com> - 2022-04-18 02:55 +0100
              Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Andy Burnelli <spam@nospam.com> - 2022-04-18 07:43 +0100
                Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Andy Burnelli <spam@nospam.com> - 2022-04-18 20:31 +0100
                  Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Andy Burnelli <spam@nospam.com> - 2022-04-19 06:11 +0100
                Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Andy Burnelli <spam@nospam.com> - 2022-04-19 06:02 +0100
    Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? John Doe <always.look@message.header> - 2022-04-17 06:22 +0000
      Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Andy Burnelli <spam@nospam.com> - 2022-04-18 20:35 +0100
        Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? YK <youkidding@yahoo.com> - 2022-04-19 14:11 -0400
          Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? "wasbit" <wasbitREMOVE@hotmail.com> - 2022-04-20 09:26 +0100
            Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Andy Burnelli <spam@nospam.com> - 2022-04-20 23:12 +0100
    Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Big Al <Bears@invalid.com> - 2022-04-18 16:03 -0400
      Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Andy Burnelli <spam@nospam.com> - 2022-04-26 23:19 +0100
        Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Andy Burnelli <spam@nospam.com> - 2022-04-27 12:42 +0100
    Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Andy Burnelli <spam@nospam.com> - 2022-04-20 23:12 +0100
      Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Andy Burnelli <spam@nospam.com> - 2022-04-21 04:50 +0100
    Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Andy Burnelli <spam@nospam.com> - 2022-04-22 05:21 +0100
      Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Andy Burnelli <spam@nospam.com> - 2022-04-23 18:29 +0100
    Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Andy Burnelli <spam@nospam.com> - 2022-04-27 12:51 +0100
      Re: What do you use to mirror & control your Android phone on Windows using the keyboard & mouse? Muhammad Akhtar Assi <chahmadbashir370@gmail.com> - 2023-09-18 18:19 -0700

Page 1 of 2  [1] 2  Next page →


#1488 — What do you use to mirror & control your Android phone on Windows using the keyboard & mouse?

FromAndy Burnelli <spam@nospam.com>
Date2022-04-17 00:33 +0100
SubjectWhat do you use to mirror & control your Android phone on Windows using the keyboard & mouse?
Message-ID<t3fjnj$1btv$1@gioia.aioe.org>
What do you use to mirror & fully control your Android phone on Windows
using the keyboard & mouse? <https://i.postimg.cc/N0G1TXcZ/scrcpy01.jpg>

Background:

Recently I needed to take a screenshot of an app that had protection against
screenshots so I figured out a way to take Android screenshots on Windows.

As a bonus, that Windows mirroring of Android happens to be fully functional
such that the Windows PC & mouse fully control the entire Android interface.

Question:

If you already perform Android mirroring on a Windows PC, what do you use?

[toc] | [next] | [standalone]


#1489

FromJoel <joelcrump@gmail.com>
Date2022-04-16 19:41 -0400
Message-ID<9ukm5htiikf9lkkqhn96j1ffuivtrso8vu@4ax.com>
In reply to#1488
Andy Burnelli <spam@nospam.com> wrote:

>What do you use to mirror & fully control your Android phone on Windows
>using the keyboard & mouse? <https://i.postimg.cc/N0G1TXcZ/scrcpy01.jpg>
>
>Background:
>
>Recently I needed to take a screenshot of an app that had protection against
>screenshots so I figured out a way to take Android screenshots on Windows.
>
>As a bonus, that Windows mirroring of Android happens to be fully functional
>such that the Windows PC & mouse fully control the entire Android interface.
>
>Question:
>
>If you already perform Android mirroring on a Windows PC, what do you use?


Intriguing, but I really don't have a use for operating my phone from
my computer.  My phone has its uses when I'm at home, but they are all
separate from the computer.

-- 
Joel Crump

[toc] | [prev] | [next] | [standalone]


#1490

FromAndy Burnelli <spam@nospam.com>
Date2022-04-17 01:13 +0100
Message-ID<t3fm3b$ma$1@gioia.aioe.org>
In reply to#1489
Joel wrote:

> Intriguing, but I really don't have a use for operating my phone from
> my computer.  My phone has its uses when I'm at home, but they are all
> separate from the computer.

While I wrote a tutorial each for every free Windows Android emulator, today
I wrote a tutorial for mirroring Android on Windows - where what I would
like to learn from others is _how_ they accomplish the same mirroring tasks?
 C:\> adb devices
 C:\> scrcpy 

This has some _huge_ advantages that are a bonus that I'm just learning now!
That's why I'm asking others here what you use to mirror Android on the PC.

I only tried scrcpy because I needed to screenshot what was locked to
screenshotting by Android app policy, so obviously that's at least one use.

Everything that needs to be typed is clearly more efficient when you have
your PC mouse and keyboard, but what's also a bonus is you can easily save a
video of what's going on the Android phone while you're using it.
 C:\> scrcpy --record foo.mp4

Yet another _fantastic_ advantage is your 6.5 inch phone display becomes a
huge 20 inches tall by 9 inches wide (my real calculations!) on your screen.

This is instantly a boon to tired old eyes, which is most of Usenet by now.

I'm not sure of other uses, but I've had my phone tethered to my PC for a
couple of hours now where I'm constantly quite easily responding to text
messages by typing on the keyboard, which is clearly another huge advantage
of the method (for people who are tethered to a computer, anyway).

You can be on _both_ the Windows PC and the Android phone at the same time!
C:\> adb pull /system/etc/hosts .\hosts.txt

And, if I use a WebDAV server on Android (versus FTP or HTTP or SMB
servers), I can read and write _directly_ to/from Android over USB.
(As WebDAV mounts the entire Android phone as a drive letter on Windows.)

You can even pull up individual (public) pages of _any_ Android app:
C:\> adb shell am start -n com.google.android.gms/.ads.settings.AdsSettingsActivity
 (That will reset your Android Advertising-ID from Windows for example.)

Given all this comes simply by unpacking a zip file containing two FOSS
executables (adb & scrcopy), I was wondering how _other_ people do the same
thing (and I want to include that information in my nascent tutorial also).
-- 
Usenet is a world-wide team sport where purposefully helpful kind-hearted
adults help each other and learn by pooling our individual capabilities.

[toc] | [prev] | [next] | [standalone]


#1491

FromJoel <joelcrump@gmail.com>
Date2022-04-16 20:23 -0400
Message-ID<pbnm5hpqarindstosjgltjnl13675ou1aa@4ax.com>
In reply to#1490
Andy Burnelli <spam@nospam.com> wrote:

>> Intriguing, but I really don't have a use for operating my phone from
>> my computer.  My phone has its uses when I'm at home, but they are all
>> separate from the computer.
>
>While I wrote a tutorial each for every free Windows Android emulator, today
>I wrote a tutorial for mirroring Android on Windows - where what I would
>like to learn from others is _how_ they accomplish the same mirroring tasks?
> C:\> adb devices
> C:\> scrcpy 
>
>This has some _huge_ advantages that are a bonus that I'm just learning now!
>That's why I'm asking others here what you use to mirror Android on the PC.
>
>I only tried scrcpy because I needed to screenshot what was locked to
>screenshotting by Android app policy, so obviously that's at least one use.
>
>Everything that needs to be typed is clearly more efficient when you have
>your PC mouse and keyboard, but what's also a bonus is you can easily save a
>video of what's going on the Android phone while you're using it.
> C:\> scrcpy --record foo.mp4
>
>Yet another _fantastic_ advantage is your 6.5 inch phone display becomes a
>huge 20 inches tall by 9 inches wide (my real calculations!) on your screen.
>
>This is instantly a boon to tired old eyes, which is most of Usenet by now.
>
>I'm not sure of other uses, but I've had my phone tethered to my PC for a
>couple of hours now where I'm constantly quite easily responding to text
>messages by typing on the keyboard, which is clearly another huge advantage
>of the method (for people who are tethered to a computer, anyway).
>
>You can be on _both_ the Windows PC and the Android phone at the same time!
>C:\> adb pull /system/etc/hosts .\hosts.txt
>
>And, if I use a WebDAV server on Android (versus FTP or HTTP or SMB
>servers), I can read and write _directly_ to/from Android over USB.
>(As WebDAV mounts the entire Android phone as a drive letter on Windows.)
>
>You can even pull up individual (public) pages of _any_ Android app:
>C:\> adb shell am start -n com.google.android.gms/.ads.settings.AdsSettingsActivity
> (That will reset your Android Advertising-ID from Windows for example.)
>
>Given all this comes simply by unpacking a zip file containing two FOSS
>executables (adb & scrcopy), I was wondering how _other_ people do the same
>thing (and I want to include that information in my nascent tutorial also).


It is neat.  But my phone is secondary to my computer.  It becomes
primary when I'm not at home, or if I'm outside, but if I'm on the
computer, the phone is mostly for calls and texts, which would have
little advantage being routed through the computer.

-- 
Joel Crump

[toc] | [prev] | [next] | [standalone]


#1493

FromPeter Johnson <peter@parksidewood.nospam>
Date2022-04-17 15:26 +0100
Message-ID<li8o5hl1069qe6179kktnup4bn0gncs6g5@4ax.com>
In reply to#1491
On Sat, 16 Apr 2022 20:23:01 -0400, Joel <joelcrump@gmail.com> wrote:


>
>It is neat.  But my phone is secondary to my computer.  It becomes
>primary when I'm not at home, or if I'm outside, but if I'm on the
>computer, the phone is mostly for calls and texts, which would have
>little advantage being routed through the computer.

With MS Phone Link (ex Your Phone) configured and sitting at my PC I
find it convenient to be able to read text/Whatsapp messages on the PC
and to reply to them using the PC's keyboard. It is also handy for
copying photos off the phone to use in eBay listings. (The phone
normally sits on its charger and not on the desk.)

[toc] | [prev] | [next] | [standalone]


#1494

FromAndy Burnelli <spam@nospam.com>
Date2022-04-17 23:32 +0100
Message-ID<t3i4hg$1abp$1@gioia.aioe.org>
In reply to#1493
Peter Johnson wrote:

> With MS Phone Link (ex Your Phone) configured and sitting at my PC I
> find it convenient to be able to read text/Whatsapp messages on the PC
> and to reply to them using the PC's keyboard. It is also handy for
> copying photos off the phone to use in eBay listings. (The phone
> normally sits on its charger and not on the desk.)

Thank you for answering the question in the spirit in which it was asked!

I'm trying to learn what equivalent alternatives are for Android mirroring.
1. *scrcpy 1.23* <https://github.com/Genymobile/scrcpy>
2. *MS Phone Link/Link to Windows*
3. ?

Looking up "MS Phone Link", it seems to be introduced in this reference:
 <https://support.microsoft.com/en-us/topic/introducing-microsoft-phone-link-and-link-to-windows-2e4bb4c0-f99a-4464-92a8-5264c7c39734>
  "Our latest evolution brings a new name to unify the experience for
   all our users. With that, we're introducing Microsoft Phone Link
   as the PC app experience, and Link to Windows as our mobile app 
   for Android devices."

The Windows "Phone Link" app is located here:
 <https://www.microsoft.com/en-us/p/phone-link/9nmpj99vjbwv#activetab=pivot:overviewtab>

The Link To Windows Android app is located here:
 *Link to Windows* by Microsoft Corporation
 free, ad free, req GSF, rated 3.9, 500M+ installs
 <https://play.google.com/store/apps/details?id=com.microsoft.appmanager>

In a nice-to-see twist, Microsoft _is_ reading the reviews!
 <https://play.google.com/store/apps/details?id=com.microsoft.appmanager&showAllReviews=true>
(even though most of the MS responses are boilerplate)

This is a summary of what Microsoft says that app combination does:
a. Get instant access to everything you love on your phone from your PC.
b. Link your Android phone and PC to view and reply to text messages
c. Make and receive calls over Bluetooth
d. View your notifications
e. Share your favorite images between your phone and PC
f. Copy, edit, and even drag and drop photos without touching your phone
g. Wirelessly dragging and dropping your files from your phone to your PC
h. Wirelessly dragging and dropping your files from your PC to your phone

The good news is this Microsoft phone link app combination does _more_ 
than just the screen mirroring that the Microsoft command does.

The bad news is I couldn't get it to install, but that's probably only
because my systems are hardened for privacy which others won't have done.
 <https://i.postimg.cc/zX9TnVkp/aurora13.jpg> 
 <https://i.postimg.cc/P5YYKT3H/aurora14.jpg> 
 <https://i.postimg.cc/L5gnX3GS/linktopc07.jpg> 
 <https://i.postimg.cc/63jvT33r/linktopc01.jpg> 
 <https://i.postimg.cc/HnF84hbj/linktopc02.jpg> 
 <https://i.postimg.cc/J7FXLGSm/linktopc03.jpg> 
 <https://i.postimg.cc/RZ7JKGhV/linktopc04.jpg> 
 <https://i.postimg.cc/MGzMDRf0/linktopc05.jpg> 
 <https://i.postimg.cc/sXNMsN6K/linktopc06.jpg> 

Thank you for adding another way to run your phone on your Win10/11 PC!

[toc] | [prev] | [next] | [standalone]


#1497

FromPeter Johnson <peter@parksidewood.nospam>
Date2022-04-18 12:35 +0100
Message-ID<s2jq5hh5h1prqe74iuphvjk3e5agsfjgp6@4ax.com>
In reply to#1494
On Sun, 17 Apr 2022 23:32:32 +0100, Andy Burnelli <spam@nospam.com>
wrote:

>Peter Johnson wrote:
>
>> With MS Phone Link (ex Your Phone) configured and sitting at my PC I
>> find it convenient to be able to read text/Whatsapp messages on the PC
>> and to reply to them using the PC's keyboard. It is also handy for
>> copying photos off the phone to use in eBay listings. (The phone
>> normally sits on its charger and not on the desk.)
>
>Thank you for answering the question in the spirit in which it was asked!
>
Maybe I should have said that MS YourPhone/PhoneLink was developed by
MS engineers working with Samsung. I have dragged photos from the PC
onto the phone's screen - they are downloaded, not surprisingly, into
the download folder.

[toc] | [prev] | [next] | [standalone]


#1498

FromAndy Burnelli <spam@nospam.com>
Date2022-04-18 20:27 +0100
Message-ID<t3ke38$1s98$1@gioia.aioe.org>
In reply to#1497
Peter Johnson wrote:

>>Thank you for answering the question in the spirit in which it was asked!
>>
> Maybe I should have said that MS YourPhone/PhoneLink was developed by
> MS engineers working with Samsung. I have dragged photos from the PC
> onto the phone's screen - they are downloaded, not surprisingly, into
> the download folder.

Thank you for that clarification of the MS/Samsung YourPhone/PhoneLink duo.
I was completely unaware of its existence since I use other tools to share.
a. NitroShare <https://nitroshare.net/>
b. KDE Desktop <https://sourceforge.net/projects/kde-windows/>
c. WebDav, FTP, HTTP, SMB, etc., server protocols

As you noted, the articles I cited did reference "some" Samsungs 
come with the Microsoft tools you speak of already preloaded.
a. Microsoft "Link to Windows" <com.microsoft.appmanager>
b. Samsung "Link to Windows" <com.samsung.android.mdx>
 
In fact, I belatedly noticed that my own Samsung _already_ had the service
you speak of preloaded, when I checked my apps using the GitHub App Manager.
   <https://i.postimg.cc/L5gnX3GS/linktopc07.jpg>

What I like about the MS/Samsung "Link to Windows" duo is that you can make
calls on the PC using bluetooth & I like the drag-and-drop between devices.

If I want to save _directly_ between the devices, I need to mount the
Android phone as a Windows drive letter first (easily done with WebDAV).

I wanted to test your suggested solution but it won't install on Windows
(probably because I don't have a Microsoft Store which I've never needed).
 <https://i.postimg.cc/MGzMDRf0/linktopc05.jpg> 
 <https://i.postimg.cc/sXNMsN6K/linktopc06.jpg> 

Do you know if there is any other way to get the Windows side of this duo?
The one thing I wanted to test was whether the clipboard can be shared.
-- 
Usenet is a world-wide team sport where purposefully helpful kind-hearted
adults help each other and learn by pooling our individual capabilities.

[toc] | [prev] | [next] | [standalone]


#1495

FromAndy Burnelli <spam@nospam.com>
Date2022-04-18 02:55 +0100
Message-ID<t3igd8$o7p$1@gioia.aioe.org>
In reply to#1493
Peter Johnson wrote:

> The phone normally sits on its charger and not on the desk.

I forgot to mention that adb & scrcpy work over TCP/IP in addition to USB.
As long as your phone is on your LAN, the screen mirroring will still work.

C:\> adb connect 192.168.0.2:5555
C:\> scrcpy

Where the "192.168.0.2" is the IP address of your phone on your LAN.
 <https://github.com/Genymobile/scrcpy/blob/master/README.md#tcpip-wireless>

The only problem I have with Android mirroring over to Windows 10/11 while
on Wi-Fi is that the screen keeps falling asleep on the phone - whereas with
USB, there's an Android "Developer options" setting to keep the phone awake
while it's on the charger (which for you won't be a problem given that's
your exact situation).

[toc] | [prev] | [next] | [standalone]


#1496

FromAndy Burnelli <spam@nospam.com>
Date2022-04-18 07:43 +0100
Message-ID<t3j1a9$1fu4$1@gioia.aioe.org>
In reply to#1495
Andy Burnelli wrote:

> The only problem I have with Android mirroring over to Windows 10/11 while
> on Wi-Fi is that the screen keeps falling asleep on the phone - whereas with
> USB, there's an Android "Developer options" setting to keep the phone awake
> while it's on the charger (which for you won't be a problem given that's
> your exact situation).

UPDATE: 
I was left clicking all the time (since that's what taps buttons).
A simple "rightclick" from Windows awakes the sleeping Android phone.

So now it's just about perfect considering 
a. It works with USB or over Wi-Fi (if you're on the LAN)
b. The Windows mouse & keyboard work perfectly (a mouse swipe is odd)
c. Even control+C control+V works but only if done only on the one device

About the only thing that doesn't work is a control+C of something on
Windows and than a control+V paste back into Android (or vice versa).

[toc] | [prev] | [next] | [standalone]


#1499

FromAndy Burnelli <spam@nospam.com>
Date2022-04-18 20:31 +0100
Message-ID<t3ke9i$1usu$1@gioia.aioe.org>
In reply to#1496
UPDATE

If anyone has a Windows PC with a touchscreen, can you test out the swipe?

With just a mouse, a swipe up and down is a bit cumbersome.
But I haven't been able to figure out how to do a two-finger pinch.

Two questions I'd love to get advice from people who know more than I do:
a. Does "pinch" & "swipe" work when Android is mirrored on a PC touchscreen?
b. If not, how can a mouse replicate the "pinch" action on Android mirrors?
-- 
On Usenet you can find people who know more than you do about Windows.

[toc] | [prev] | [next] | [standalone]


#1503

FromAndy Burnelli <spam@nospam.com>
Date2022-04-19 06:11 +0100
Message-ID<t3lg99$n8l$1@gioia.aioe.org>
In reply to#1499
Andy Burnelli wrote:

> Two questions I'd love to get advice from people who know more than I do:
> a. Does "pinch" & "swipe" work when Android is mirrored on a PC touchscreen?
> b. If not, how can a mouse replicate the "pinch" action on Android mirrors?

update

This scrcpy is kind of like ffmpeg or wget or Irfanview, where everything
you might want has already been thought of and supplied in the options! :)

After reading the README, I found how to do the "pinch to zoom" on the PC
between the Android phone and the Windows computer (over USB & Wi-Fi).
 <https://github.com/Genymobile/scrcpy#readme>

All you do is hold the Windows keyboard "control key down" as your first
finger, and then just leftclick (then hold and move to zoom in or out).

It's a little touchy - but other than that, the "pinch to zoom" worked!

Here is the detailed "pinch to zoom" documentation in the scrcpy README:
 <https://github.com/Genymobile/scrcpy#pinch-to-zoom>

 *Pinch-to-zoom*
 To simulate "pinch-to-zoom": Ctrl+click-and-move.

 More precisely, hold Ctrl while pressing the left-click button. 

 Until the left-click button is released, all mouse movements scale
 and rotate the content (if supported by the app) relative to the
 center of the screen.

 Concretely, scrcpy generates additional touch events from a 
 "virtual finger" at a location inverted through the center of the screen.
-- 
This scrcpy command is an instant keeper for anyone who owns Android.

[toc] | [prev] | [next] | [standalone]


#1502

FromAndy Burnelli <spam@nospam.com>
Date2022-04-19 06:02 +0100
Message-ID<t3lfp7$huo$1@gioia.aioe.org>
In reply to#1496
Andy Burnelli wrote:

> About the only thing that doesn't work is a control+C of something on
> Windows and than a control+V paste back into Android (or vice versa).

UPDATE

Supposedly the control+C and control+V are supposed to work between the
Android phone and the Windows computer, at least according to the README.
 <https://github.com/Genymobile/scrcpy#readme>

Specifically the claim of "copy/paste in both directions" in the README:
 <https://github.com/Genymobile/scrcpy#copy-paste>
 
Copy-paste
 Any time the Android clipboard changes, it is automatically synchronized 
 to the computer clipboard.

 Any Ctrl shortcut is forwarded to the device. 
  In particular:
   Ctrl+c typically copies
   Ctrl+x typically cuts
   Ctrl+v typically pastes (after computer-to-device clipboard synchronization)
   This typically works as you expect.

The actual behavior depends on the active application though. 
 For example, Termux sends SIGINT on Ctrl+c instead, 
 and K-9 Mail composes a new message.

To copy, cut and paste in such cases (but only supported on Android >= 7):
 MOD+c injects COPY
 MOD+x injects CUT
 MOD+v injects PASTE (after computer-to-device clipboard synchronization)

 In addition, MOD+Shift+v allows to inject the computer clipboard text
 as a sequence of key events. This is useful when the component does 
 not accept text pasting (for example in Termux), but it can break 
 non-ASCII content.

WARNING: Pasting the computer clipboard to the device 
(either via Ctrl+v or MOD+v) copies the content into the device clipboard.
As a consequence, any Android application could read its content. 
You should avoid pasting sensitive content (like passwords) that way.

Some devices do not behave as expected when setting the device clipboard
programmatically. An option --legacy-paste is provided to change the
behavior of Ctrl+v and MOD+v so that they also inject the computer clipboard
text as a sequence of key events (the same way as MOD+Shift+v).

To disable automatic clipboard synchronization, use --no-clipboard-autosync.

[toc] | [prev] | [next] | [standalone]


#1492

FromJohn Doe <always.look@message.header>
Date2022-04-17 06:22 +0000
Message-ID<t3gbma$8ht$1@dont-email.me>
In reply to#1488
If that's what you want to do...

Why not use a smartphone as a touchpad with its display on the monitor?

When a monitor is available, why not display the smartphone screen on a 
monitor while using the whole smartphone screen as a touchpad?

I don't quite get why that hasn't been implemented...





Andy Burnelli <spam@nospam.com> wrote:

> What do you use to mirror & fully control your Android phone on Windows
> using the keyboard & mouse? <https://i.postimg.cc/N0G1TXcZ/scrcpy01.jpg>
> 
> Background:
> 
> Recently I needed to take a screenshot of an app that had protection 
against
> screenshots so I figured out a way to take Android screenshots on Windows.
> 
> As a bonus, that Windows mirroring of Android happens to be fully 
functional
> such that the Windows PC & mouse fully control the entire Android 
interface.
> 
> Question:
> 
> If you already perform Android mirroring on a Windows PC, what do you use?
> 

[toc] | [prev] | [next] | [standalone]


#1500

FromAndy Burnelli <spam@nospam.com>
Date2022-04-18 20:35 +0100
Message-ID<t3kei1$2sv$1@gioia.aioe.org>
In reply to#1492
John Doe wrote:

> I don't quite get why that hasn't been implemented...

I'm only using two or three mirroring commands so far in my tests.

To mirror Android on Windows over USB:
 C:\> adb devices
 C:\> scrcpy

To mirror Android on Windows over Wi-Fi:
 C:\> adb connect 192.168.0.2:5555
 C:\> scrcpy
      Where the "192.168.0.2" is the IP address of your phone on your LAN.

But maybe one of these options can do what you are asking things to do?

scrcpy 1.23 <https://github.com/Genymobile/scrcpy>
Usage: scrcpy [options]

Options:

    --always-on-top
        Make scrcpy window always on top (above other windows).

    -b, --bit-rate=value
        Encode the video at the gitven bit-rate, expressed in bits/s. Unit
        suffixes are supported: 'K' (x1000) and 'M' (x1000000).
        Default is 8000000.

    --codec-options=key[:type]=value[,...]
        Set a list of comma-separated key:type=value options for the device
        encoder.
        The possible values for 'type' are 'int' (default), 'long', 'float' and
        'string'.
        The list of possible codec options is available in the Android
        documentation:
        <https://d.android.com/reference/android/media/MediaFormat>

    --crop=width:height:x:y
        Crop the device screen on the server.
        The values are expressed in the device natural orientation (typically,
        portrait for a phone, landscape for a tablet). Any --max-size value is
        computed on the cropped size.

    -d, --select-usb
        Use USB device (if there is exactly one, like adb -d).
        Also see -e (--select-tcpip).

    --disable-screensaver
        Disable screensaver while scrcpy is running.

    --display=id
        Specify the display id to mirror.
        The list of possible display ids can be listed by:
            adb shell dumpsys display
        (search "mDisplayId=" in the output)
        Default is 0.

    --display-buffer=ms
        Add a buffering delay (in milliseconds) before displaying. This
        increases latency to compensate for jitter.
        Default is 0 (no buffering).

    -e, --select-tcpip
        Use TCP/IP device (if there is exactly one, like adb -e).
        Also see -d (--select-usb).

    --encoder=name
        Use a specific MediaCodec encoder (must be a H.264 encoder).

    --force-adb-forward
        Do not attempt to use "adb reverse" to connect to the device.

    --forward-all-clicks
        By default, right-click triggers BACK (or POWER on) and middle-click
        triggers HOME. This option disables these shortcuts and forwards the
        clicks to the device instead.

    -f, --fullscreen
        Start in fullscreen.

    -K, --hid-keyboard
        Simulate a physical keyboard by using HID over AOAv2.
        It provides a better experience for IME users, and allows to generate
        non-ASCII characters, contrary to the default injection method.
        It may only work over USB.
        The keyboard layout must be configured (once and for all) on the device,
        via Settings -> System -> Languages and input -> Physical keyboard. This
        settings page can be started directly: `adb shell am start -a
        android.settings.HARD_KEYBOARD_SETTINGS`.
        However, the option is only available when the HID keyboard is enabled
        (or a physical keyboard is connected).
        Also see --hid-mouse.

    -h, --help
        Print this help.

    --legacy-paste
        Inject computer clipboard text as a sequence of key events on Ctrl+v
        (like MOD+Shift+v).
        This is a workaround for some devices not behaving as expected when
        setting the device clipboard programmatically.

    --lock-video-orientation[=value]
        Lock video orientation to value.
        Possible values are "unlocked", "initial" (locked to the initial
        orientation), 0, 1, 2 and 3. Natural device orientation is 0, and each
        increment adds a 90 degrees rotation counterclockwise.
        Default is "unlocked".
        Passing the option without argument is equivalent to passing "initial".

    --max-fps=value
        Limit the frame rate of screen capture (officially supported since
        Android 10, but may work on earlier versions).

    -M, --hid-mouse
        Simulate a physical mouse by using HID over AOAv2.
        In this mode, the computer mouse is captured to control the device
        directly (relative mouse mode).
        LAlt, LSuper or RSuper toggle the capture mode, to give control of the
        mouse back to the computer.
        It may only work over USB.
        Also see --hid-keyboard.

    -m, --max-size=value
        Limit both the width and height of the video to value. The other
        dimension is computed so that the device aspect-ratio is preserved.
        Default is 0 (unlimited).

    --no-cleanup
        By default, scrcpy removes the server binary from the device and
        restores the device state (show touches, stay awake and power mode) on
        exit.
        This option disables this cleanup.

    --no-clipboard-autosync
        By default, scrcpy automatically synchronizes the computer clipboard to
        the device clipboard before injecting Ctrl+v, and the device clipboard
        to the computer clipboard whenever it changes.
        This option disables this automatic synchronization.

    --no-downsize-on-error
        By default, on MediaCodec error, scrcpy automatically tries again with a
        lower definition.
        This option disables this behavior.

    -n, --no-control
        Disable device control (mirror the device in read-only).

    -N, --no-display
        Do not display device (only when screen recording or V4L2 sink is
        enabled).

    --no-key-repeat
        Do not forward repeated key events when a key is held down.

    --no-mipmaps
        If the renderer is OpenGL 3.0+ or OpenGL ES 2.0+, then mipmaps are
        automatically generated to improve downscaling quality. This option
        disables the generation of mipmaps.

    --otg
        Run in OTG mode: simulate physical keyboard and mouse, as if the
        computer keyboard and mouse were plugged directly to the device via an
        OTG cable.
        In this mode, adb (USB debugging) is not necessary, and mirroring is
        disabled.
        LAlt, LSuper or RSuper toggle the mouse capture mode, to give control of
        the mouse back to the computer.
        If any of --hid-keyboard or --hid-mouse is set, only enable keyboard or
        mouse respectively, otherwise enable both.
        It may only work over USB.
        See --hid-keyboard and --hid-mouse.

    -p, --port=port[:port]
        Set the TCP port (range) used by the client to listen.
        Default is 27183:27199.

    --power-off-on-close
        Turn the device screen off when closing scrcpy.

    --prefer-text
        Inject alpha characters and space as text events instead of key events.
        This avoids issues when combining multiple keys to enter a special
        character, but breaks the expected behavior of alpha keys in games
        (typically WASD).

    --print-fps
        Start FPS counter, to print framerate logs to the console. It can be
        started or stopped at any time with MOD+i.

    --push-target=path
        Set the target directory for pushing files to the device by drag & drop.
        It is passed as is to "adb push".
        Default is "/sdcard/Download/".

    --raw-key-events
        Inject key events for all input keys, and ignore text events.

    -r, --record=file.mp4
        Record screen to file.
        The format is determined by the --record-format option if set, or by the
        file extension (.mp4 or .mkv).

    --record-format=format
        Force recording format (either mp4 or mkv).

    --render-driver=name
        Request SDL to use the given render driver (this is just a hint).
        Supported names are currently "direct3d", "opengl", "opengles2",
        "opengles", "metal" and "software".
        <https://wiki.libsdl.org/SDL_HINT_RENDER_DRIVER>

    --rotation=value
        Set the initial display rotation.
        Possible values are 0, 1, 2 and 3. Each increment adds a 90 degrees
        rotation counterclockwise.

    -s, --serial=serial
        The device serial number. Mandatory only if several devices are
        connected to adb.

    --shortcut-mod=key[+...][,...]
        Specify the modifiers to use for scrcpy shortcuts.
        Possible keys are "lctrl", "rctrl", "lalt", "ralt", "lsuper" and
        "rsuper".
        A shortcut can consist in several keys, separated by '+'. Several
        shortcuts can be specified, separated by ','.
        For example, to use either LCtrl+LAlt or LSuper for scrcpy shortcuts,
        pass "lctrl+lalt,lsuper".
        Default is "lalt,lsuper" (left-Alt or left-Super).

    -S, --turn-screen-off
        Turn the device screen off immediately.

    -t, --show-touches
        Enable "show touches" on start, restore the initial value on exit.
        It only shows physical touches (not clicks from scrcpy).

    --tcpip[=ip[:port]]
        Configure and reconnect the device over TCP/IP.
        If a destination address is provided, then scrcpy connects to this
        address before starting. The device must listen on the given TCP port
        (default is 5555).
        If no destination address is provided, then scrcpy attempts to find the
        IP address of the current device (typically connected over USB), enables
        TCP/IP mode, then connects to this address before starting.

    --tunnel-host=ip
        Set the IP address of the adb tunnel to reach the scrcpy server. This
        option automatically enables --force-adb-forward.
        Default is localhost.

    --tunnel-port=port
        Set the TCP port of the adb tunnel to reach the scrcpy server. This
        option automatically enables --force-adb-forward.
        Default is 0 (not forced): the local port used for establishing the
        tunnel will be used.

    --v4l2-sink=/dev/videoN
        Output to v4l2loopback device.
        It requires to lock the video orientation (see
        --lock-video-orientation).
        This feature is only available on Linux.

    --v4l2-buffer=ms
        Add a buffering delay (in milliseconds) before pushing frames. This
        increases latency to compensate for jitter.
        This option is similar to --display-buffer, but specific to V4L2 sink.
        Default is 0 (no buffering).
        This option is only available on Linux.

    -V, --verbosity=value
        Set the log level (verbose, debug, info, warn or error).
        Default is info.

    -v, --version
        Print the version of scrcpy.

    -w, --stay-awake
        Keep the device on while scrcpy is running, when the device is plugged
        in.

    --window-borderless
        Disable window decorations (display borderless window).

    --window-title=text
        Set a custom window title.

    --window-x=value
        Set the initial window horizontal position.
        Default is "auto".

    --window-y=value
        Set the initial window vertical position.
        Default is "auto".

    --window-width=value
        Set the initial window width.
        Default is 0 (automatic).

    --window-height=value
        Set the initial window height.
        Default is 0 (automatic).

Shortcuts:

    In the following list, MOD is the shortcut modifier. By default, it's (left)
    Alt or (left) Super, but it can be configured by --shortcut-mod (see above).

    MOD+f
        Switch fullscreen mode

    MOD+Left
        Rotate display left

    MOD+Right
        Rotate display right

    MOD+g
        Resize window to 1:1 (pixel-perfect)

    MOD+w
    Double-click on black borders
        Resize window to remove black borders

    MOD+h
    Middle-click
        Click on HOME

    MOD+b
    MOD+Backspace
    Right-click (when screen is on)
        Click on BACK

    MOD+s
        Click on APP_SWITCH

    MOD+m
        Click on MENU

    MOD+Up
        Click on VOLUME_UP

    MOD+Down
        Click on VOLUME_DOWN

    MOD+p
        Click on POWER (turn screen on/off)

    Right-click (when screen is off)
        Power on

    MOD+o
        Turn device screen off (keep mirroring)

    MOD+Shift+o
        Turn device screen on

    MOD+r
        Rotate device screen

    MOD+n
        Expand notification panel

    MOD+Shift+n
        Collapse notification panel

    MOD+c
        Copy to clipboard (inject COPY keycode, Android >= 7 only)

    MOD+x
        Cut to clipboard (inject CUT keycode, Android >= 7 only)

    MOD+v
        Copy computer clipboard to device, then paste (inject PASTE keycode,
        Android >= 7 only)

    MOD+Shift+v
        Inject computer clipboard text as a sequence of key events

    MOD+i
        Enable/disable FPS counter (print frames/second in logs)

    Ctrl+click-and-move
        Pinch-to-zoom from the center of the screen

    Drag & drop APK file
        Install APK from computer

    Drag & drop non-APK file
        Push file to device (see --push-target)

Environment variables:

    ADB
        Path to adb executable

    SCRCPY_ICON_PATH
        Path to the program icon

    SCRCPY_SERVER_PATH
        Path to the server binary

[toc] | [prev] | [next] | [standalone]


#1504

FromYK <youkidding@yahoo.com>
Date2022-04-19 14:11 -0400
Message-ID<t3mu06$er0$1@gioia.aioe.org>
In reply to#1500
On 4/18/2022 3:35 PM, Andy Burnelli wrote:
>     In the following list, MOD is the shortcut modifier. By default, it's (left)
>     Alt or (left) Super, but it can be configured by --shortcut-mod (see above).

What keys are "(left) Super" on a typical keyboard?

>     MOD+Up
>         Click on VOLUME_UP
> 
>     MOD+Down
>         Click on VOLUME_DOWN
> 
>     MOD+p
>         Click on POWER (turn screen on/off)
> 

Nice that it can emulate the hardware buttons on the side of the phone.

>     MOD+c
>         Copy to clipboard (inject COPY keycode, Android >= 7 only)
> 
>     MOD+x
>         Cut to clipboard (inject CUT keycode, Android >= 7 only)
> 
>     MOD+v
>         Copy computer clipboard to device, then paste (inject PASTE keycode,
>         Android >= 7 only)
> 
>     MOD+Shift+v
>         Inject computer clipboard text as a sequence of key events

Those might be your missing ctrl+C & ctrl+V cutting and pastings.

[toc] | [prev] | [next] | [standalone]


#1505

From"wasbit" <wasbitREMOVE@hotmail.com>
Date2022-04-20 09:26 +0100
Message-ID<t3og3d$h4d$1@dont-email.me>
In reply to#1504
"YK" <youkidding@yahoo.com> wrote in message 
news:t3mu06$er0$1@gioia.aioe.org...
>
> snip <
>
> Those might be your missing ctrl+C & ctrl+V cutting and pastings.

Nope.
Copy = ctrl+c
Cut    = ctrl+x
Paste = ctrl+v

-- 
Regards
wasbit 

[toc] | [prev] | [next] | [standalone]


#1508

FromAndy Burnelli <spam@nospam.com>
Date2022-04-20 23:12 +0100
Message-ID<t3q0gm$1ooi$1@gioia.aioe.org>
In reply to#1505
wasbit wrote:

>> Those might be your missing ctrl+C & ctrl+V cutting and pastings.
> 
> Nope.
> Copy = ctrl+c
> Cut    = ctrl+x
> Paste = ctrl+v

UPDATE:
 <https://i.postimg.cc/N0G1TXcZ/scrcpy01.jpg> Mirror Android on any PC
 <https://i.postimg.cc/tTmdgKTB/scrcpy02.jpg> An efficient program setup
 <https://i.postimg.cc/Vvrq0K0m/scrcpy03.jpg> The efficient setup explained

REGARDING KEYS in the README: <https://github.com/Genymobile/scrcpy#readme>

It turns out that the "Super" key in the README is just the "Windows" key.

It turns out that the "MOD" key in the README differs depending on the
situation (apparently) but for _my_ hardware, the "MOD" key was clearly
the "Leftalt" key on my keyboard. 

What wasn't intuitive until I stumbled upon it was the "Shift" is required
in _my_ hardware situation, where the readme is confusing on that addition.

However, the _simple_ answer is that a paste requires the shift but only
when going from Windows to the Android mirror. I don't understand why, but
it works and that's all that matters sometimes as the things I needed were:
1. I needed to operate the hardware buttons (done)
2. I needed to wake the phone (done)
3. I needed to share the Windows:Android clipboards (done)
4. I needed to mirror on USB _and_ Wi-Fi (done)
5. I needed to record screenshots & video (done)
6. I needed to mount Android as a drive letter so as to save directly
   from Android to Windows and from Windows to Android (done)
etc.

All that was accomplished in the space of two days elapsed time simply 
because the {adb,scrcpy,webdav,irfanview} software is fully functional.

In summary, to cut and paste between Windows and the mirrored Android uses
all the normal keys you'd think it would use _except_ in the case of cutting
from Windows (which would use for example, Control+C) and then _pasting_
into Android (which uses the *Shift+MOD+v* three-finger combination).

Copy from Windows: Control+V
Paste into Android: Shift+Leftalt+V

As an aside, It's fun to watch when you paste a long URL because that
shift+Mod+V combination actually does a keystroke-by-keystroke typing one by
one (but it's fast so it's _almost_ instantaneous - but not quite).

From the readme... <https://github.com/Genymobile/scrcpy#readme>
   --legacy-paste
        Inject computer clipboard text as a sequence of key events on Ctrl+v
        (like MOD+Shift+v).
        This is a workaround for some devices not behaving as expected when
        setting the device clipboard programmatically. 

   MOD+v
        Copy computer clipboard to device, then paste (inject PASTE keycode,
        Android >= 7 only)

    MOD+Shift+v
        Inject computer clipboard text as a sequence of key events
-- 
People working together can solve problems that benefit everyone greatly.

[toc] | [prev] | [next] | [standalone]


#1501

FromBig Al <Bears@invalid.com>
Date2022-04-18 16:03 -0400
Message-ID<t3kg71$t2u$1@dont-email.me>
In reply to#1488
On 4/16/22 19:33, this is what Andy Burnelli wrote:
> What do you use to mirror & fully control your Android phone on Windows
> using the keyboard & mouse? <https://i.postimg.cc/N0G1TXcZ/scrcpy01.jpg>
> 
> Background:
> 
> Recently I needed to take a screenshot of an app that had protection against
> screenshots so I figured out a way to take Android screenshots on Windows.
> 
> As a bonus, that Windows mirroring of Android happens to be fully functional
> such that the Windows PC & mouse fully control the entire Android interface.
> 
> Question:
> 
> If you already perform Android mirroring on a Windows PC, what do you use?
I realize this has been talked over and over here, and this isn't exactly your answer but...

I use PushBullet.  An add-on to your browser (any) and an app in Google Play.  Once you sign in to both, I get 
notifications of phone calls, security alerts, and I can fully interact with text messaging.  The latter is the most 
useful to me.

Granted the down side is, you have to have a browser open to do this, but if you hear you text message sound (if you 
have one setup), it's simple to open a browser and then read and reply.  You don't need the browser open at the time a 
text comes in, just need it to interact.

Al

[toc] | [prev] | [next] | [standalone]


#1548

FromAndy Burnelli <spam@nospam.com>
Date2022-04-26 23:19 +0100
Message-ID<t49r4t$g6p$1@gioia.aioe.org>
In reply to#1501
Big Al wrote:

>> If you already perform Android mirroring on a Windows PC, what do you use?
> I realize this has been talked over and over here, 
> and this isn't exactly your answer but...
> 
> I use PushBullet.  
> An add-on to your browser (any) and an app in Google Play.  
> Once you sign in to both, I get notifications of phone calls, 
> security alerts, and I can fully interact with text messaging.  
> The latter is the most useful to me.
> 
> Granted the down side is, you have to have a browser open 
> to do this, but if you hear you text message sound (if you 
> have one setup), it's simple to open a browser and then read 
> and reply.  You don't need the browser open at the time a 
> text comes in, just need it to interact.

Thank you for hazarding another solution to interfacing Android
to Windows so that we can easily interact with both simultaneously.

Given you took the time to make the suggestion, I am taking the time
to look at your suggestion, and to summarize for others what it entails.

To that end, I took a look at this PushBullet advice from "Big Al":
 <https://www.pushbullet.com/>

There's a better description over here:
 <https://pushbullet.en.softonic.com/>
 "Pushbullet essentially lets you transform your PC into an extension 
  of your mobile device and vice versa. With it, you can establish a 
  connection between the two and manage various aspects of your devices, 
  such as notifications. As such, you can easily read and reply 
  to messages without even having to open your phone or tablet. 
  It supports various popular messaging solutions, so integration
  is quite seamless, too.

  After installing it on your PC and smartphone device, you then 
  choose the account you want to use with it. You can even connect 
  multiple ones to it. That way, you can quickly switch among them 
  and manage all of them as needed. True to its name, once connected,
  Pushbullet will let you push links, notes, or even files 
  (under 25MB) to and fro instantly.

  Just a couple of quick test notes on the free version for 
  your consideration. As mentioned earlier, you can send any 
  file under 25MB instantaneously. If you need a bigger size 
  allowance, you need to purchase a Pro subscription for up to 1GB, 
  along with 100 GB of storage space, up from 2GB. Also, you are 
  limited to 100 messages per month, while unlimited on the
  paid version."

That seems nice.

The free version is limited to certain file sizes and requires a login;
but otherwise, it seems like a nice program we should all know about.

Thanks for pitching in as to how to interface Android & Windows better.
-- 
On Usenet you can often find people who know more than you do about any
given topic, although they have to also be purposefully helpful souls.

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | alt.comp.microsoft.windows


csiph-web