Thanks @GetMem.
I've changed it a bit in order to work, because adding the code OnCreate did not work, because the instance of LazarusIDE was not available yet.
This is the package:
https://github.com/lainz/LazAutoSave
...
And another bug, the same bug of the multiple "save dialogs" when saving for the first time a file of a project, but I will figure how to solve it. Solved.
I am in desperate need of an Autosave function in the Lazarus IDE because the IDE keeps crashing several times a day when working via VNC in Lazarus on a Raspberry Pi4. All edits since last save are lost at this time so it is very frustrating...
I located this thread and it contains the solution to my problem!
And I realize it is almost 2 years old but I have a clarification question on how to use it:
After downloading the sources from GitHub, how to apply them?
I have never made changes to Lazarus except for installing packages like IndyLaz via OnLine Package Manager.
What are the steps to get this installed with Lazarus?EDIT:I had not looked in OLPM yet, but now I did so and found this Autosave package in OLPM!
Just select it and click Install!
So I have happily done that and set it for 10s interval. Hopefully this will save my day when the next crash happens!