Help with a macro

dhj49er

Well-known member
You don't need gesture sequence to perform the scroll to the left.

I've attached a screenshot of a gesture that you can use for the swipe.
I've used % rather than pixels as I don't know your screen size.
The settings may need tweaking to get the required scroll.
 

Attachments

  • Screenshot_20240112_001301_MacroDroid.jpg
    Screenshot_20240112_001301_MacroDroid.jpg
    278.1 KB · Views: 6
You don't need gesture sequence to perform the scroll to the left.

I've attached a screenshot of a gesture that you can use for the swipe.
I've used % rather than pixels as I don't know your screen size.
The settings may need tweaking to get the required scroll.
Screen size is 1800x2400, I have tried many combos of percentage, and it still will not swipe. I am at a loose now as to what to do
 

Endercraft

Moderator (& bug finder :D)
It could be that the app simply doesn't allow swipes on this part. It's the case for certain apps.
If possible instead of using a gesture to move the slider, use I click somewhere on the bar to snap the point to that position (it works with many sliders).
 
It could be that the app simply doesn't allow swipes on this part. It's the case for certain apps.
If possible instead of using a gesture to move the slider, use I click somewhere on the bar to snap the point to that position (it works with many sliders).
I'm not sure that I understand what you are saying. I can swipe anywhere on the screen to move to the next set of programs. There is no slider bar visible.
 

dhj49er

Well-known member
It could be that the app simply doesn't allow swipes on this part. It's the case for certain apps.
If possible instead of using a gesture to move the slider, use I click somewhere on the bar to snap the point to that position (it works with many sliders).
I have a similar app to the OPs and it has no issues with UI actions.
 
I have a similar app to the OPs and it has no issues with UI actions.
The macro is working as far as opening the app upon device power-up, but it will not swipe for me, perhaps I need to increase the wait times, or something else? I really appreciate the assistance thus far!
 

dhj49er

Well-known member
The macro is working as far as opening the app upon device power-up, but it will not swipe for me, perhaps I need to increase the wait times, or something else? I really appreciate the assistance thus far!
I've just checked the Oticon Companion app and it doesn't support swiping the screen.

So it is different to the Phonak app.

I change programs by UI clicking on the > & < buttons.

Are you sure the swipe is in the middle of the program bar? With the pointer location enabled, manually open the app and put the cursor (your finger) in the middle of the bar and read the y value.

It's worth experimenting, especially with duration.

It might be worth trying a click action after launching the app, to check that that is working.

Finally, have you looked at the system log after running your macro? Does this show any error messages?
 

Attachments

  • Screenshot_20240112_153301_Companion.jpg
    Screenshot_20240112_153301_Companion.jpg
    119.4 KB · Views: 4

dhj49er

Well-known member
I just checked and it is not enabled
Ok, try the following

Delete the gesture sequence action.

Run the macro & check for errors in the system log.

If no errors, add a UI Gesture action (not the gesture sequence). It will need x start and y end plus the y value you read earlier. This will produce 1 swipe and it's this that the values may need tweaking to get the swipe to work correctly.
 
Ok, try the following

Delete the gesture sequence action.

Run the macro & check for errors in the system log.

If no errors, add a UI Gesture action (not the gesture sequence). It will need x start and y end plus the y value you read earlier. This will produce 1 swipe and it's this that the values may need tweaking to get the swipe to work correctly.
OK, it was indeed the gesture sequence that was giving the errors, so I removed that, now I am still trying to get it to swipe over, when I put in the X, Y locations, where should I start it from?
 

Endercraft

Moderator (& bug finder :D)
OK, it was indeed the gesture sequence that was giving the errors, so I removed that, now I am still trying to get it to swipe over, when I put in the X, Y locations, where should I start it from?
Have you enabled the pointer location setting in developer options to figure it out?
 

dhj49er

Well-known member
OK, it was indeed the gesture sequence that was giving the errors, so I removed that, now I am still trying to get it to swipe over, when I put in the X, Y locations, where should I start it from?
The UI swipe action needs to replicate your manual swipe.

So open the app & swipe manually, noting approx where you started and ended. Then find the X values, you should have the correct y value from the earlier check I suggested you do.
 
The UI swipe action needs to replicate your manual swipe.

So open the app & swipe manually, noting approx where you started and ended. Then find the X values, you should have the correct y value from the earlier check I suggested you do.
OK, I got the gestures working, but now the UI click does not seem to do anything. I have identified the X,Y location of the button I want it to press, but it seems to be ignoring it, I'm attaching the latest screenshot of the macro.
Screenshot_20240112-124937.png
 

dhj49er

Well-known member
Enable the wait 3s - reduce it after getting the macro working
Change the waits
100ms to 500ms
50ms to 500ms
Get the macro working albeit perhaps slower than you would like, before experimenting with shorter wait times.
The else action does nothing and can be deleted.
 
Top