[Android Q&A, Help & Troubleshooting] Valiceemo:
If this is the wrong place to post , apologies and please move.

Pretty proud of this. Its a bit messy, but the best I could come up with. It will automate a tasker backup.*

I have it set to run in the dead of night at 3am.

Profile: Auto Tasker Backup (49)

********Day: Sun

********Time: 03:00

Enter: Auto Tasker Backup (4)

********A1: Wait [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ]*

********A2: If [ %SCREEN ~ on ]

********A3: Flash [ Text:Tasker backup aborted Long:eek:ff ]*

********A4: Stop [ With Error:eek:ff Task: ]*

********A5: Else*

********A6: [X] Secure Settings [ Configuration:Keyguard Disabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]*

********A7: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]*

********A8: Secure Settings [ Configuration:Screen & Keyboard Lights On

1 Second Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]*

********A9: Launch App [ App:Tasker Data: Exclude From Recent Apps:eek:n ]*

********A10: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]*

********<verify tasker is open>

********A11: Run Shell [ Command:dumpsys window windows | grep -E 'mCurrentFocus' Timeout (Seconds):0 Use Root:eek:n Store Output In:%rawdump Store Errors In:%err Store Result In:%res Continue Task After Error:eek:n ]*

********A12: Variable Search Replace [ Variable:%rawdump Search:\S+\. Ignore Case:eek:ff Multi-Line:eek:ff One Match Only:eek:ff Store Matches In:%rawdump Replace Matches:eek:ff Replace With: ]*

********A13: Variable Split [ Name:%rawdump1 Splitter:/ Delete Base:eek:ff ]*

********A14: Variable Set [ Name:%currentapp To:%rawdump11 Do Maths:eek:ff Append:eek:ff ]*

********<if tasker is not open stop>

********A15: If [ %currentapp !~ net.dinglisch.android.taskerm ]

********A16: Flash [ Text:Tasker backup aborted Long:eek:ff ]*

********A17: Stop [ With Error:eek:ff Task: ]*

********A18: End If*

********A19: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]*

********<start key presses to navigate to backup>

********A20: Button [ Button:Menu ]*

********A21: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]*

********A22: Dpad [ Button:Down Repeat Times:2 ]*

********A23: Dpad [ Button:Press Repeat Times:1 ]*

********A24: Dpad [ Button:Down Repeat Times:1 ]*

********A25: Dpad [ Button:Press Repeat Times:1 ]*

********A26: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]*

********A27: Dpad [ Button:Right Repeat Times:2 ]*

********A28: Dpad [ Button:Press Repeat Times:1 ]*

********A29: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]*

********A30: [X] Secure Settings [ Configuration:Keyguard Enabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]*

********A31: Go Home [ Page:2 ]*

********A32: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]*

********<tap screen centre to remove dpad highlight>

********A33: Run Shell [ Command:input tap 617 935 Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ]*

********A34: System Lock*

********A35: End If*

********A36: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]*

********A37: Notify [ Title:Tasker Backed Up Text:Tasker profiles backed up %DATE Icon:cust_warning Number:0 Permanent:eek:ff Priority:3 ]

If anyone can see a way to clean it up please do.*

Feedback would be welcome as this is probably my best achievement so far on tasker.*