Macro with shortcut and ui click actions not working

Hello! I am trying to make a macro that will turn off super fast charge once a timer hits a certain threshold, and then another threshold is in place it'll shut off fast charge.
Everything works until it comes to the ui click.

(I have a samsung s22, (no abd).


No idea why it won't click. It literally skips the ui click. Everything else in this macro is working for me..
 

Attachments

  • Screenshot_20230602_132316_MacroDroid.jpg
    Screenshot_20230602_132316_MacroDroid.jpg
    685 KB · Views: 7
  • Screenshot_20230602_132435_MacroDroid.jpg
    Screenshot_20230602_132435_MacroDroid.jpg
    533.5 KB · Views: 7
  • Screenshot_20230602_132444_MacroDroid.jpg
    Screenshot_20230602_132444_MacroDroid.jpg
    464.3 KB · Views: 7

MacroDroidDev

Administrator
Staff member
Are you sure that the location is correct? It's usually better to use an id of the UI control if you can find it (use read screen contents for example to read contents into a dictionary).

The UI Interaction click event can now return the success of the click in a boolean variable. If you try this do you see it report true or false?
 
Are you sure that the location is correct? It's usually better to use an id of the UI control if you can find it (use read screen contents for example to read contents into a dictionary).

The UI Interaction click event can now return the success of the click in a boolean variable. If you try this do you see it report true or false?
I am absolutely sure I've got the correct locations... the 'identity in app' ui for some reason only clicks on the top ui switch...'adaptive battery'
 

Attachments

  • Screenshot_20230605_223632_Device care.jpg
    Screenshot_20230605_223632_Device care.jpg
    378.7 KB · Views: 2

alexhee

Member
Hello! I am trying to make a macro that will turn off super fast charge once a timer hits a certain threshold, and then another threshold is in place it'll shut off fast charge.
Everything works until it comes to the ui click.

(I have a samsung s22, (no abd).


No idea why it won't click. It literally skips the ui click. Everything else in this macro is working for me..
I saw a block screen touch command in your list, if block screen touch is enabled then UI interaction click with x,y position won't be working. Text & ViewID will works. I tested this in latest version for my Samsung S23 Ultra.
 
I saw a block screen touch command in your list, if block screen touch is enabled then UI interaction click with x,y position won't be working. Text & ViewID will works. I tested this in latest version for my Samsung S23 Ultra.
Even with it disabled xy still fails.. not completely sure how view id works but ill try
 
Top