Bouton Blackview BV7100

Winny57

Member
Good morning,



I have a Blackview BV7100 device with a side button on the left, I can program the launch of an application but no shortcuts.

So I tried using an alternative application which detects the physical button of the device but launching shortcuts is not ideal. I would therefore like to use MacroDroid to launch my macro via this physical button.

I'm attaching a screenshot of the alternative app that detects the button.



If anyone has an idea to use MacroDroid to detect the button that would be cool.



THANKS
 

Attachments

  • Screenshot_20240326-063008.png
    Screenshot_20240326-063008.png
    108.1 KB · Views: 3
  • Screenshot_20240326-063015.png
    Screenshot_20240326-063015.png
    115.1 KB · Views: 3

Winny57

Member
I managed to intercept the button press using the logcat, here is the event from my log
(The short press is:
[ACCESSIBILITY] 0 - 131 - F1
The long press is:
[ACCESSIBILITY] 1 - 131 - F1) :

HTML:
2024-03-31 00:36:22.849 - T: Logcat Message: V/ACCESSIBILITY: 0 - 131 - F1 Keyevent test

2024-03-31 00:36:22.850 - Invoking Macro: Keyevent test Keyevent test

2024-03-31 00:36:22.852 - A: If (Trigger Fired: Logcat Message: [ACCESSIBILITY] 0 - 131 - F1) Keyevent test

2024-03-31 00:36:22.853 - IF CLAUSE TRUE: If (Trigger Fired: Logcat Message: [ACCESSIBILITY] 0 - 131 - F1) Keyevent test

2024-03-31 00:36:22.853 - A: Wait Until Trigger (Logcat Message) Keyevent test

2024-03-31 00:36:23.003 - T: Logcat Message: V/ACCESSIBILITY: 1 - 131 - F1 Keyevent test

2024-03-31 00:36:23.004 - Invoking Macro: Keyevent test Keyevent test

2024-03-31 00:36:23.004 - A: If (Trigger Fired: Logcat Message: [ACCESSIBILITY] 0 - 131 - F1) Keyevent test

2024-03-31 00:36:23.004 - A: If (Trigger Fired: Logcat Message: [ACCESSIBILITY] 0 - 131 - F1) If condition failed: Trigger Fired (Keyevent test) Keyevent test

2024-03-31 00:36:23.006 - A: If (Trigger Fired: Logcat Message: [ACCESSIBILITY] 1 - 131 - F1) Keyevent test

2024-03-31 00:36:23.006 - IF CLAUSE TRUE: If (Trigger Fired: Logcat Message: [ACCESSIBILITY] 1 - 131 - F1) Keyevent test
 
Top