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.
Autosaving while entering text
Moderator: Martin
- tsolignani
- Posts: 187
- Joined: 12 Jan 2019 11:53
- Location: Vignola, Mo, Italy
- Contact:
Re: Autosaving while entering text
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.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
-
- Posts: 179
- Joined: 16 Oct 2019 17:38
Re: Autosaving while entering text
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.
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.
-
- Posts: 179
- Joined: 16 Oct 2019 17:38
Re: Autosaving while entering text
"Crude but it works" is now my signature. It sums up my flows perfectly!
Crude but it works.
Re: Autosaving while entering text
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.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
- tsolignani
- Posts: 187
- Joined: 12 Jan 2019 11:53
- Location: Vignola, Mo, Italy
- Contact:
Re: Autosaving while entering text
Thank you.Desmanto wrote: ↑15 Dec 2019 10:51I 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.
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.
- tsolignani
- Posts: 187
- Joined: 12 Jan 2019 11:53
- Location: Vignola, Mo, Italy
- Contact:
Re: Autosaving while entering text
Micky Micky wrote: ↑15 Dec 2019 11:51"Crude but it works" is now my signature. It sums up my flows perfectly!
Re: Autosaving while entering text
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).tsolignani wrote: ↑15 Dec 2019 16:14Thank 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 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.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.