How to click a shortcut on screen off?

Janek Ebert

New member
I want to launch a shortcut to google assistant routine, by clicking on a button on my headphones. Do you have aby idea, how to make it works with the screen off? What could I write in an intent parametres?
 

Pseudocyclic

Well-known member
Try the Button Mapper app:


Select the "+ Add Buttons" option, then select the + icon (bottom right), then press your headset button and see if anything is detected.

You can configure Button Mapper to run the MacroDroid macro(s) of your choosing.

You should be able to use the Launch Application action to run Google Assistant.
 

Janek Ebert

New member
Wypróbuj aplikację Button Mapper:

[URL unfurl = "true"] https://play.google.com/store/apps/details?id=flar2.homebutton [/ URL]

Wybierz opcję „+ Dodaj przyciski”, a następnie ikonę + (w prawym dolnym rogu), a następnie naciśnij przycisk zestawu słuchawkowego i zobacz, czy coś zostało wykryte.

Możesz skonfigurować Button Mapper, aby uruchamiał wybrane makra MacroDroid.

Powinieneś móc użyć akcji Uruchom aplikację, aby uruchomić Asystenta Google.

Try the Button Mapper app:


Select the "+ Add Buttons" option, then select the + icon (bottom right), then press your headset button and see if anything is detected.

You can configure Button Mapper to run the MacroDroid macro(s) of your choosing.

You should be able to use the Launch Application action to run Google Assistant.
Thanks. Unfortunately Button Mapper doesn't work with the screen off...
 

Pseudocyclic

Well-known member
And there is no option to launch directly the google assistant routine.
See screenshot below.

Alternatively, you can configure Button Mapper to run the MacroDroid macro(s) of your choosing.

You should be able to use the Launch Application action to run Google Assistant.
 

Attachments

  • Screenshot_20210221-120844_Button Mapper.jpg
    Screenshot_20210221-120844_Button Mapper.jpg
    227.6 KB · Views: 8

Janek Ebert

New member
You can configure Button Mapper to run the MacroDroid macro(s) of your choosing.

You should be able to use the Launch Application action to run Google Assistant.
Yes, but I don't have a problem with trigger, but with the action. How to launch the shortcut? It is not enough for me to run Google Assistant - I want to run it with specific command ("read my messeges" in this case). I figured out, I can make a routine, which run directly the command to Google Assistant after clicking on the shortcut. But I still don't know, how to click the shortcut when the screen is off.

Button Mapper can run any application, but it cannot run the shortcut.
 

Pseudocyclic

Well-known member
Yes, but I don't have a problem with trigger, but with the action. How to launch the shortcut? It is not enough for me to run Google Assistant - I want to run it with specific command ("read my messeges" in this case). I figured out, I can make a routine, which run directly the command to Google Assistant after clicking on the shortcut. But I still don't know, how to click the shortcut when the screen is off.

Button Mapper can run any application, but it cannot run the shortcut.
 

Attachments

  • Screenshot_20210221-114257_Button Mapper.jpg
    Screenshot_20210221-114257_Button Mapper.jpg
    279.6 KB · Views: 9

Janek Ebert

New member
I mean Google Assistant routine shortcut, not MacroDroid shortcut. It would be a good solution, if I could make a macro with appropriate action (invoke Google Assistant with the command), but I can't.
 

neostar

New member
I want to launch a shortcut to google assistant routine, by clicking on a button on my headphones. Do you have aby idea, how to make it works with the screen off? What could I write in an intent parametres?
I have the same problem, did you find any solution with the screen off?
 
Top