Jump to content
Developer Wiki and Function Reference Links ×

Autosave


hong

Recommended Posts

It looks like we only store one value for the interval and then use a flag to toggle between "time" and "ops". Try calling SetPref(39, false) to set it to "ops".

SetPrefInt(60, 1); { set save interval to 1 }

SetPref(39, false); { set to save by number of operations }

Link to comment

Thanks for your reply. Yes, i can set this by 1 operation so that autosave menu pops up. Then I say OK to save to back up and set my operation for usual interval by going to the preference menu again. Can I do this all inside of a script? Can I pause the script to bring preference pop-up, assign OK value, and return to the script so that I can reset my interval?

Link to comment

No, but you could do the following in the middle of your script:

DoMenuTextByName('Save As', 0);

It poses a save dialog, but after the user hits OK your script will continue. You don't need to change the auto-save settings at all for this.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...