Plugin [uitask]

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Plugin [uitask]

Post by Rafi4 » 06 Oct 2018 04:33

Hi
How can I change plugin UItask variables [utresult =user input] to global variable.
Thanks in advance
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Plugin [uitask]

Post by Desmanto » 06 Oct 2018 05:26

Why do you need UITask? What is the dialog type you need from it? For the dialog type not available in Automagic Input dialog, some of them can be triggered simply using action Start Activity.

The plugin should have "Provided variables", those you can assign to glovar later using script.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Plugin [uitask]

Post by Rafi4 » 06 Oct 2018 09:14

Hi
Desmanto how can I assign to glovar using script.give any example. I am using uitask plugin for colourful dialogs.input text and time and date in input dialog. In uitask plugin
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Plugin [uitask]

Post by Desmanto » 06 Oct 2018 11:43

Just try it out, and it has so many option. Take some time to customize it, seems not for me. But I understand why you use it.

After configure it, you have Provided variables a utresult. Simply assign this to glovar in script.

Code: Select all

global_nameofyourglovar = utresult
If you assign the button, you can also use the utbutton there. Just check the provided variables, or simply add condition debug dialog to see what variable you use from the plugin after inputing something to it.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Plugin [uitask]

Post by Rafi4 » 07 Oct 2018 03:52

Hi Desmanto
Thanks a lot for your help.
But I want to know about condition debug dialog. Give me one example.
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Plugin [uitask]

Post by Desmanto » 07 Oct 2018 12:41

You simply add the condition - debug dialog, after the plugin. Execute the flow as usual, input the value you want into the UItask and later the debug dialog will pop up and show you everything.
For detail, you can visit my debug dialog thread : viewtopic.php?f=5&t=7262
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply