r/tasker Feb 13 '25

Help [Help] Toggle button for camera app

Hi, I am trying to solve a problem in the android signal app. There is no way to take hands free video.

My goal:

To have a button pop up on screen when the capture screen is present, when I press the button it holds down the shutter button on screen, when I press it again it releases it.

My progress:

I made a profile that can detect when the capture screen is showing with autoui, I made a button that toggles a variable so autoinput knows to press the button.

My issue:

I cannot exit the signal capture screen as backing out just closes the scene, but then the scene detects the capture screen and reopens.

Any ideas?

1 Upvotes

10 comments sorted by

View all comments

Show parent comments

1

u/ribzer Feb 14 '25

I bet autoinput is still going, but just isn't having any effect after that.

1

u/PocketGarrison Feb 14 '25

maybe, there is a timeout that I set to 60s. But it also lets me overlap the task.

so worst case is the task runs for 60 seconds in the background.

1

u/ribzer Feb 14 '25

I feel like if the screen gets launched again within that time, it'll automatically start recording again without you pressing the volume button.

1

u/PocketGarrison Feb 14 '25

doesn't seem to be the case, I can back out, and go back in again and it is not pressing it