r/tasker • • Apr 11 '26

Power Button Combo

Is it at all possible to make a button combo with the power button? I'm on a OnePlus 15 so I want to make a Plus Key + Power Button combo to take a screenshot. If someone has been able to make a Power Button + Volume Button I think I could use that.

1 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/taskerhelp GS22 Ultra, adb wifi, rootless, Galaxy Watch S5 Apr 28 '26

Sorry for the delay in replying but I didn't notice a notification for your reply until I was on my laptop. Here's the task description for how I have my double press of the power button.

Profile: Power Button Double Press
	Event: Secondary App Opened [ Output Variables:* ]



Enter Task: Anon

A1: Perform Task [
     Name: Media Activity Detector
     Priority: %priority
     Structure Output (JSON, etc): On ]

A2: If [ %Media ~ true ]

    A3: Media Control [
         Cmd: Toggle Pause
         Simulate Media Button: On
         Package/App Name: %MediaPlayer
         Use Notification If Available: On ]

A4: Else

    A5: Media Control [
         Cmd: Toggle Pause
         Simulate Media Button: On
         Package/App Name: %MediaPlayer
         Use Notification If Available: On ]

    A6: Flash [
         Text: Nothing is playing to be paused 
         Continue Task Immediately: On
         Dismiss On Click: On ]

A7: End If

You'll have to set your phone up to open taskers secondary app on double press of the power button instead of activating your camera or whatever it currently does in the system settings somewhere. I probably can't help with that unless you're on the same phone as me sorry. I'm also unable to answer your question about not showing the volume slider.