Skip to content

Record true macros and replay them on demand #1638

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

Open
githubsterer opened this issue Apr 9, 2025 · 12 comments
Open

Record true macros and replay them on demand #1638

githubsterer opened this issue Apr 9, 2025 · 12 comments
Assignees
Labels

Comments

@githubsterer
Copy link

Developer TODO (don't remove)

This may sounds backwards because I'm not looking to use the side button as a trigger but to simulate pressing the side button together with the volume up button to activate the accessibility magnifier. The only other way is what I'm doing now, which is simulating a two-finger swipe from the bottom, but that disables the gesture to use for split windows. If there was some way to open the magnifier (either by simulating those key presses or by activating it through the Send Intents action, that would free up the two-finger gesture for something else.

Any ideas?

p.s. I'm not talking about using the camera as a magnifier, I'm talking about where a portion of the screen gets magnified.

@githubsterer
Copy link
Author

If you could somehow figure out how to do this and then package it into an action, you would make visually impaired and older folks really happy.

@jambl3r
Copy link
Collaborator

jambl3r commented Apr 9, 2025

We're having a big discussion right now about the possibility of recording general macros and then replaying them. I'll reframe this issue as that. That would let you do this

@jambl3r jambl3r changed the title Simulate Side-Volume Up Key Presses Record true macros and replay them on demand Apr 9, 2025
@jambl3r
Copy link
Collaborator

jambl3r commented Apr 9, 2025

User flow would be

Press start recording button on accessibility overlay
Go in any app, do anything, press keys, touch the screen, whatever
Press stop recording button on accessibility overlay
Save all that information into an action
You can use that action in a key map and it would replay exactly what you did

Note: seems not to be possible with screen interactions (?) even with Shizuku but may be possible with key events with accessibility service

@jambl3r jambl3r added the action label Apr 9, 2025
@githubsterer
Copy link
Author

I'm not clear on how that would help here, though, because I need to send a simulated key press or alternately activate whatever happens when you do that on the phone to start the magnifier. I assume you have tools to see what service is being involved at that time I presume? Can you try it and see what it says?

@jambl3r
Copy link
Collaborator

jambl3r commented Apr 9, 2025

With this system, you would just press the keys you want to simulate, and Key Mapper would listen and then simulate it for you

@githubsterer
Copy link
Author

That sounds great. For those us who need something like this sooner than you implement the macros, could you listen now and see what it comes up with?

@jambl3r
Copy link
Collaborator

jambl3r commented Apr 10, 2025

This tool you're talking about isn't really a thing. Besides, I don't have a Samsung device and I think your magnifier is a Samsung app

@githubsterer
Copy link
Author

It's not an app and every phone has it. If you go into accessibility settings it's called magnification, not magnifier and you have several options to choose from to activate it. One is the double finger swipe but another is pressing the side and volume up buttons at the same time.

Image
Image

@jambl3r
Copy link
Collaborator

jambl3r commented Apr 10, 2025

Everything in Android is 'an app' in one way or another

Magnification is an accessibility feature in Android but the skin vendor can tweak it however they want. In Samsung's case they made one of the shortcuts involve the side key, whereas on my Google Pixel I can press both volume buttons instead.

It's not a universal thing.

@jambl3r
Copy link
Collaborator

jambl3r commented Apr 10, 2025

Have you tried using intents to do this?

@githubsterer
Copy link
Author

githubsterer commented Apr 10, 2025

You can do the volume buttons only too. But that requires a three second hold whereas the side and up volume is immediate.

I'm not sure what intents to send if you have some ideas that would be great.

@githubsterer
Copy link
Author

I only see these services and the magnifier here is not the same thing, that's the camera app for enlarging images using the camera, not zooming the screen.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants