Hardware Key Event Boolean AND
Moderator: Martin
Hardware Key Event Boolean AND
Currently, the hardware key event trigger operates as an OR, so setting it to trigger with vol up/down causes the flow to trigger when either key is pressed. I would like to be able to make a flow trigger only when both keys are pressed.
Re: Hardware Key Event Boolean AND
AFAIR, there are changes in 1.38 which allow this, but can't be sure. Other way to do it is to use condition execution count with very short timed, example 200 ms.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: Hardware Key Event Boolean AND
Thanks! Hopefully you're right and it is added in the new version, which would greatly simplify things, though I suppose it's something that'll only be used once. Anyway, your setup got me on the right track, and I just made a minor modification to make it work better. I added a 2x in 500ms execution count after each key code condition before combining into the 2x count after them. That way, pressing the same volume button twice really fast, as might happen when adjusting the volume, won't trigger it.