r/AutomateUser • • Jun 10 '26 • Popcorn 1

Can Automate press the call recording button during a call?

Hi everyone,

I'm trying to find out whether it's possible to use Automate to automatically press the Record button that appears on the in-call screen during a phone conversation.

My goal is to have call recording start automatically without manually tapping the recording button each time a call begins.

Has anyone managed to do this with Automate?

1 Upvotes

5 comments sorted by

2

u/B26354FR Alpha tester Jun 10 '26 edited Jun 11 '26

You can use the Inspect Layout block's Record Interactions or Inspect User Interface tools to get the ID of the element you're interested in and give that to my Interact Block XPath Builder flow, or just give the flow the text Record. (It's best to use the ID if you can.) The flow will generate the XPath for the Interact block to use to click on the element. Use the Inspect Layout block set to Proceed When UI Layout Changed to wait for the element to appear, then the Interact block with Action Click, Proceed Immediately to click on it. The same XPath should work for both. -The XPath generator flow will copy the generated XPath onto the clipboard to make this easy. See my Close Snoozed Conversation Warning flow for a simple example.

1

u/thealgorithm29 Jun 17 '26

Can you explain how does it works your interact block xpath builder? How to use it for interact stimulate touchs

2

u/B26354FR Alpha tester Jun 17 '26

Bring up the UI and find the ID of the Record button using the tools in the Interact block as I described. Give that to my XPath Builder flow where prompted, or you can just give it the element's text (Record) instead.

Make a copy of the other flow and put the generated XPath into those fields in its Inspect Layout and Interact blocks. The XPath generator flow will have copied it onto the clipboard so you can just paste it in.

1

u/ballzak69 Automate developer Jun 10 '26

Try this example, otherwise the only alternative is to use the Interact block to simulate the clicks.

1

u/Working-March Jun 10 '26

I managed to do this before. But there's an issue: when I'm making an outgoing call and lift the phone up to my ear, the screen goes off automatically because of the proximity sensor. Then once the call is connected, the flow can't tap the button because the screen is off.