Autosaving while entering text

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
tsolignani
Posts: 187
Joined: 12 Jan 2019 11:53
Location: Vignola, Mo, Italy
Contact:

Autosaving while entering text

Post by tsolignani » 15 Dec 2019 10:22

Good morning everyone.

Sometime I write long texts into automagic's dialog boxes and I wonder if there would be a way to autosave to a text file just in case something could go wrong.

Thank you and have a nice Sunday.

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

Re: Autosaving while entering text

Post by Desmanto » 15 Dec 2019 10:51

I don't think it is a good idea to write long text in input dialog. A simple back press will destroy everything you type and no prompt for that. Better use launch app and launch an external editor. I use MiXplorer Text Editor in case I need to write a long text. It doesn't have auto save, but the save button can be easily reached at the top right corner. Pressing back at least have the save file prompt, so less accident.
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.

Micky Micky
Posts: 179
Joined: 16 Oct 2019 17:38

Re: Autosaving while entering text

Post by Micky Micky » 15 Dec 2019 11:47

I tried using UI EVENT as a trigger watching for text change and writing to a text file.

Using an INPUT DIALOG action this happened:

Typed: abcdefg

Written to file: aababcabcdeabcdefabcdefg

The only other way that I can think of is to use CLIPBOARD CHANGED trigger and writing to a text file.
So when typing you can SELECT ALL and COPY when you feel the need.

Crude but it works.
Crude but it works.

Micky Micky
Posts: 179
Joined: 16 Oct 2019 17:38

Re: Autosaving while entering text

Post by Micky Micky » 15 Dec 2019 11:51

"Crude but it works" is now my signature. It sums up my flows perfectly!
Crude but it works.

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

Re: Autosaving while entering text

Post by Desmanto » 15 Dec 2019 15:25

The other way to do it is to loop your input dialog for that particular flow which you expect to type long text. Pressing OK will go to script to save it to glovar and loop back to the same input dialog with the default value of the typed text. After you have finished, press OK once to save to glovar again and loop back, then press cancel to stop editing. The flow will continue with operation=="cancel" and process the final typed text from the glovar instead (or the default value).
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
tsolignani
Posts: 187
Joined: 12 Jan 2019 11:53
Location: Vignola, Mo, Italy
Contact:

Re: Autosaving while entering text

Post by tsolignani » 15 Dec 2019 16:14

Desmanto wrote:
15 Dec 2019 10:51
I don't think it is a good idea to write long text in input dialog. A simple back press will destroy everything you type and no prompt for that. Better use launch app and launch an external editor. I use MiXplorer Text Editor in case I need to write a long text. It doesn't have auto save, but the save button can be easily reached at the top right corner. Pressing back at least have the save file prompt, so less accident.
Thank you.

QuickEdit app has autosave feature and you can set the interval as well, maybe it could be interesting for you.

How do you handle going from automagic to an external app, then back to automagic? Create a text file, then open it with the external app, then save and get back to automagic? How do you make it the smoother it can gets?

Thank you.

User avatar
tsolignani
Posts: 187
Joined: 12 Jan 2019 11:53
Location: Vignola, Mo, Italy
Contact:

Re: Autosaving while entering text

Post by tsolignani » 15 Dec 2019 16:16

Micky Micky wrote:
15 Dec 2019 11:51
"Crude but it works" is now my signature. It sums up my flows perfectly!
😂👍💘

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

Re: Autosaving while entering text

Post by Desmanto » 15 Dec 2019 17:16

tsolignani wrote:
15 Dec 2019 16:14
Thank you.

QuickEdit app has autosave feature and you can set the interval as well, maybe it could be interesting for you.

How do you handle going from automagic to an external app, then back to automagic? Create a text file, then open it with the external app, then save and get back to automagic? How do you make it the smoother it can gets?

Thank you.
I used that in the past too. But MiXplorer provide many things for me, so I can uninstalled a lot of other stuff. (Just like Automagic has done for me too).

I haven't yet needed to open MiXplorer Text Editor directly from Automagic. I usually just typed the text there, creating a new text file in the Download folder. But if I ever needed it, then it is as easy as create the file and use start activity to MiXplorer Text Editor activity, opening the file created. Enabling the flow to detect the app task ended from mixplorer. I type there until finish, then close the editor, flow triggered and can be back to the point I started the flow. It won't be smooth, as there are app switching involved.
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