Working autosave, but need help to finalize it

 From:  Moi3dFan
11150.1 
I wrote a function in SidePane that executes a Save command every 3 minutes.

It really works. You have to specify the save path first the first time, and then everything is saved automatically.

Now I want to prescribe the conditions to be saved in the GeneralOptions menu. To take the time interval parameter and incremental save option from the moi.ini file.


That's what it looks like now. And it certainly doesn't work.




Below in the figure, how it looks in GeneralOptions




And here are the parameters that I would like the autosafe to take from moi.ini



Autosave=18000
AutosaveIncremental=y

Please help me figure out how to put it all together