Genymobile / Genymobile/scrcpy

menu or hotkeys for custom script execution

Open
#5,249 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
150k
Forks
13.7k
Avg merge
4d 13h
Merged PRs (30d)
2

Description

- [ X] I have checked that a similar [feature request](https://github.com/Genymobile/scrcpy/issues?q=is%3Aopen+is%3Aissue+label%3A%22feature+request%22) does not already exist.

**Is your feature request related to a problem? Please describe.**
Ease of use enhancements, can be used to solve multiple issues and allow users to "brew their own solution".
For instance, my specific problem at hand was using scrpy over TCP/IP, my screen would turn off and phone would lock every 60 seconds. It was very tedious to right-click to wake the phone, swipe up (actually swiping is not that easy to do on a trackpad in scrpy) and enter my PIN. I solved this by writing the following script:

https://gist.github.com/bengalih/d3ec0d618142e699e91367a6e917cfee

**Describe the solution you'd like**
While the script eases my work, it is still a bit tedious to run. I have other similar scripts to automate actions via adb, for instance I find it very hard to swipe the notification bar down with my mouse, so I wrote adb code to simulate this. to run this outside of scrpy is also a bit tedious and interrupting of workflow.

It would be nice it scrpy could integrate some sort of system to allow quick running of scripts.

It appears that right-click doesn't do anything except wake-up phone. It might be nice for right-click to bring up a menu to run things like custom scripts, or perhaps at least a drop down from the mirrored window?

**Describe alternatives you've considered**
alternatives are simply toggling away from scrpy to run the script. they work, but are tedious.

**Additional context**
your program is fantastic.
thank you

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue does not name files, tests, or entry points. Start by reviewing scrcpy's existing right-click handling and desktop menu/input flow, then clarify the scope and interaction design for launching custom scripts. Done should include an agreed design and a tested way to trigger the requested actions.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, c
Domain
desktop, mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.