floating button trigger

Probz

New member
let say i have a macro a and macro b
i have set up macro a to create a floating button when google docs is launched
and macro b is setup in such way that when floating button is clicked it will change my device keyboard
now if i want to setup macro b in such way that when floating button is clicked twice then only it triggers then how do i do that?
 

Shiffo

Member
let say i have a macro a and macro b
i have set up macro a to create a floating button when google docs is launched
and macro b is setup in such way that when floating button is clicked it will change my device keyboard
now if i want to setup macro b in such way that when floating button is clicked twice then only it triggers then how do i do that?
Add the constraint not invoked within 1 seconds -> [this macro]
 

Probz

New member

Attachments

  • Screenshot_20240510_191632_MacroDroid.jpg
    Screenshot_20240510_191632_MacroDroid.jpg
    179.7 KB · Views: 8
  • Screenshot_20240510_191637_MacroDroid.jpg
    Screenshot_20240510_191637_MacroDroid.jpg
    322.3 KB · Views: 8

hsurB

Well-known member
I understood that you want the macro to TRIGGER WHEN YOU CLICK BUTTON TWICE so thats my approach, not sure if its the best method but it should work. You can use second macro to enable/disable or hide/show floating button from this one.
Remember to change launch app action to whatever you want to do when button is clicked twice
You have about 2seconds to click it twice, if you need more go to - wait until trigger and increase the timeout
 

Attachments

  • ForumProbz (1).png
    ForumProbz (1).png
    135.6 KB · Views: 5
  • ForumProbz (1).macro
    4.4 KB · Views: 0
Last edited:

Shiffo

Member
I understood that you want the macro to TRIGGER WHEN YOU CLICK BUTTON TWICE so thats my approach, not sure if its the best method but it should work. You can use second macro to enable/disable or hide/show floating button from this one.
Remember to change launch app action to whatever you want to do when button is clicked twice
You have more than a second to click it twice, if you need more go to - wait until trigger and increase the timeout
Edit. Thats actually more like few seconds :unsure: So maybe my macro isn't too good actually, it probably doesn't even need second trigger at the top
Instead of wait for trigger use wait for action 1 sec. Works perfectly for me ! And the second trigger isn't needed 😄👍
 

hsurB

Well-known member
Instead of wait for trigger use wait for action 1 sec. Works perfectly for me ! And the second trigger isn't needed 😄👍

Haha yeah! Thats probably correct. I had few ideas how to do it so I ended up mixing all of them and messing it all along the way 😅
Updated macro

I recommend setting wait before to 500ms, seems decent then
 
Last edited:

Probz

New member
i found the best solution by experimenting this one is more efficient thanks for the help and i recommend this method for this problem
 

Attachments

  • Screenshot_20240511_120001_MacroDroid.jpg
    Screenshot_20240511_120001_MacroDroid.jpg
    324.9 KB · Views: 8
  • Screenshot_20240511_120004_MacroDroid.jpg
    Screenshot_20240511_120004_MacroDroid.jpg
    282.5 KB · Views: 8
  • Screenshot_20240511_120007_MacroDroid.jpg
    Screenshot_20240511_120007_MacroDroid.jpg
    364.2 KB · Views: 8

Shiffo

Member
i found the best solution by experimenting this one is more efficient thanks for the help and i recommend this method for this problem
Yes makes sense. But that way can you not like press the button now and then 2 hours later, wont it trigger? I dont see a timeout. You could add one on secure 2, and after the timeout clear the variable.
I remembered i have a button configured like that. Its all in one macro, i prefer it that way 😉
 

hsurB

Well-known member
i found the best solution by experimenting this one is more efficient thanks for the help and i recommend this method for this problem
Change Secure Settings to Secure Folder in triggers and empty action to launch 1DM+ and yeah.. I'd change wait before next action to like 300/500ms instead 2s
 

Attachments

  • ForumProbz (2).png
    ForumProbz (2).png
    295.6 KB · Views: 7
  • ForumProbz (2).macro
    7.3 KB · Views: 1
Last edited:
Top