HOME | DD

IrishWolven — How to~ SAI Autosave and Batch File
Published: 2015-03-01 23:37:53 +0000 UTC; Views: 27718; Favourites: 165; Downloads: 0
Redirect to original
Description

*Disclaimer - I am not the original creator of the script, all credit goes to Aiffe on Tumblr*
aiffe.tumblr.com/post/71936328…


I'm pretty sure a lot of people get the biggest peeves when SAI crashes on them and then loosing all progress when you've forgotten to save, well look no further the answer is here.

The script itself is easy enough, it's just an .exe file that must be ran after SAI has been opened. The autosave saves progress after every minute only when SAI is in focus on the screen. (e.g I'm using SAI then I look at something on Google chrome for ten minutes. SAI will not save during those 10 minutes and will begin to autosave again when I look back at SAI.)

After you quit SAI the autosave script will still run for a minute before quitting itself so if you re-open SAI you will need to re-run the script as well.

EDIT (4th November 2021): Download the autosave.exe here - drive.google.com/file/d/0B0kTd…

Now the batch file will simply allow you to run the autoscript.exe automatically when you launch SAI. To do this follow these simple steps.

EDIT: Please note this only works for a Windows PC




1. Open Notepad
2. Write this with each command on a new line, (Important: There is no space between @ and echo) 

@ echo off
start "SAI" "( Destination Path to where you have saved SAI.exe )" %1
start "Autsosave" "( Destination Path to where you have saved autosave.exe )"

Example: (I currently have both files saved on my external hard drive) 

@ echo off
start "SAI" "E:\PaintTool_SAI_English_Pack\PaintTool SAI English Pack\sai.exe" %1  <- THIS IS THE EXAMPLE 
start "Autsosave" "E:\SAI AUtosave\autosave.exe"

Screenshot:  screencast.com/t/YigSLjoM  <- WHAT IT SHOULD LOOK LIKE WITH YOUR COMMAND PATHS



3. Save as RunSaiandautosave.bat to Desktop or where ever you want it (Or name it anything you like so long as it ends with .bat to create the batch file.) 

4. Double click the batch file like running any other application and it should open up Paint Tool SAI and the autosave.exe

5. From there simply create a new document and save it before starting. The script should now autosave that document for you. 


EDIT 2: (26th Mar, 2016)


It has come to my attention that if you have saved SAI.exe and the Autosave.exe into your Program files on the C: Drive then the batch file requires to be written slightly differently in order to access the .exe files. The solution is as such;

@ echo off (No space between @ and Echo)
start "SAI" C:\"Program Files\Paint Tool SAI\App\sai.exe" 
start "Autosave" C:\"Program Files\autosave.exe"


EDIT 3: (7th July, 2016)
A.) Visual step by step tutorial can be found here ->
B.) I am currently looking for beta testers to see if these new autosave scripts I've made, work. Instead of saving every minute you can choose between 5, 10, 15 or 20 minutes depending on which file you decide to use. The instructions are the same as the autosave above. Feedback is really appreciated. 

New SAI Autosave Files - BetaAs to those who already know about my journal about making a batch file for the SAI autosave.exe

I have decided to have a go at creating new scripts with altered times. The original autosave.exe posted by Aiffe on Tumblr ( http://aiffe.tumblr.com/post/71936328207/autosave-script-for-paint-tool-sai ) saves at one minute intervals. For me this was rather annoying as the script blocks keyboard and mouse input every minute whilst it autosaves. Whilst it only effects me for a second everytime it can often put me off my drawing groove. (-Insert Kuzco here.-)

I have created four new variations of the autosave for 5, 10, 15, and 20 minutes respectf


Optional:

You can also set the batch file as your default opening program for SAI files (Or PSD files) 

1. Right click the appropriate file
2. Select -> Open with default program
3. Search and select the newly created batch file. 

Opening those files will now open them up in SAI and will run the autosave script. 

Hope this helps people and all credit to original creator of the script. If I missed something feel free to comment

Related content
Comments: 108

Bonehead-Newt [2020-10-31 05:10:48 +0000 UTC]

👍: 0 ⏩: 0

Luthfim269 [2018-12-27 03:14:04 +0000 UTC]

that bat script didnt work for me.. so i just make it more simple like:

START C:\YOURPATH\sai.exe
START C:\YOURPATH\autosave.exe

And It Work

👍: 0 ⏩: 0

FramedMe [2018-09-25 20:38:06 +0000 UTC]

I was going to download it but, my antivirus hates it so, I'd rather lose a file here.
(Not saying it's bad but, I don't really bother when my antivirus hates programs.)

👍: 0 ⏩: 0

karcea [2018-05-03 16:22:15 +0000 UTC]

Thank you so much!

👍: 0 ⏩: 0

ProxyFlare [2018-03-22 01:24:10 +0000 UTC]

Know of any way to change the time save? Like, I know it saves every minute but, it freezes my SAI for a few seconds since I work on larger canvases.

👍: 0 ⏩: 1

IrishWolven In reply to ProxyFlare [2018-03-27 18:42:11 +0000 UTC]

Officially the original creator only made a 1 minute interval version. I did at one point try and extract the script and alter the times intervals, but I currently have no idea if they work or not.


New SAI Autosave Files - BetaAs to those who already know about my journal about making a batch file for the SAI autosave.exe

I have decided to have a go at creating new scripts with altered times. The original autosave.exe posted by Aiffe on Tumblr ( http://aiffe.tumblr.com/post/71936328207/autosave-script-for-paint-tool-sai ) saves at one minute intervals. For me this was rather annoying as the script blocks keyboard and mouse input every minute whilst it autosaves. Whilst it only effects me for a second everytime it can often put me off my drawing groove. (-Insert Kuzco here.-) 
I have created four new variations of the autosave for 5, 10, 15, and 20 minutes respectfully. I however require some testers to see if the scripts work. All four .exe files can be found at the link below. 
Link: https://drive.google.com/folderview?id=0B3x6mdiYz8NjTzY2WWI3VWtELTA&usp=sharing
*Please be aware the autosave.exe will only save when Paint Tool SAI is the active appl

👍: 0 ⏩: 1

ProxyFlare In reply to IrishWolven [2018-03-27 18:43:25 +0000 UTC]

Okay, maybe someday I'll look into it. It's manageable for now. Thank you for responding!

👍: 0 ⏩: 0

Papillonmask [2018-03-19 06:09:42 +0000 UTC]

Does this work with sai 2.0

👍: 0 ⏩: 1

IrishWolven In reply to Papillonmask [2018-03-27 18:43:12 +0000 UTC]

No it does not. However with some scripting the .exe file can be altered to work for SAI 2.0 

👍: 0 ⏩: 0

BeIIum [2018-01-30 23:38:08 +0000 UTC]


Hii, I'm havin some issues with it ;o; 
My paint tool sai folder is located in my downloads folder- and has a longer name cuz it's a modded version.
The autosave.exe is also located in the downloads folder.
I type in the addresses but my command prompt says its not able to be found? How can I fix it to work properly?

EDIT : So I got the batch file to open sai, but the bit that isn't working is the downloads bit? My command prompt says it cant find it 
I have it typed as "start "Autsosave" "Downloads/autosave.exe"" since its just sitting in my downloads folder.  

👍: 0 ⏩: 1

IrishWolven In reply to BeIIum [2018-01-31 09:14:39 +0000 UTC]

Hi,

Could you please post a screenshot of your batch file for me please. 

In the mean time try;   start "Autosave" C:\"Downloads\autosave.exe"  

Another theory may be that because you are using a modified version of the SAI.exe file the autosave.exe isn't compatible with your version. 

👍: 0 ⏩: 1

BeIIum In reply to IrishWolven [2018-01-31 17:57:08 +0000 UTC]

My names a little too long to write but I'll copy paste it echo off
start "SAI" "C:\Users\drsen\Downloads\Paint Tool SAI Anglicised with Custom Brushes and Transparency Mod\Easy Paint Tool SAI\sai.exe" %1
start "Autosave" "C:\Downloads\autosave.exe" "

The first part works, the second part says it can't find it. 
 
I knew someone who had it work with my version but they've forgotten by now, so I was wondering what its issue is whenever my command prompt says it can't find it in downloads? 

👍: 0 ⏩: 1

IrishWolven In reply to BeIIum [2018-02-13 00:07:02 +0000 UTC]

Could be it doesn't want to work through your download folder. Try moving SAI and the autosave.exe file to your Documents and write the batch file to the new location.

👍: 0 ⏩: 0

Nyarimi [2017-08-11 20:55:02 +0000 UTC]

thanks

👍: 0 ⏩: 0

MsSeva [2017-06-27 17:13:52 +0000 UTC]

Thanks so much ^.^

👍: 0 ⏩: 0

Mysterioso2006 [2017-02-28 05:54:21 +0000 UTC]

I'm having a strange issue. I can get the autosave to run perfectly fine by opening up sai and running the autosave program, but my batch file won't work. It will open just fine but doesn't seem to want to save anything. It's important to note that I'm actually using Sai 2.

imgur.com/a/U0mnp

Everything seems to be in order, but clearly something isn't.

👍: 0 ⏩: 0

KimiSynth [2016-08-28 23:04:47 +0000 UTC]

It doesn't work for me... I execute sai then the autosave file, sai opens, I draw, but it doesn't save anything

👍: 0 ⏩: 2

IrishWolven In reply to KimiSynth [2016-08-29 01:28:16 +0000 UTC]

Did you save the document first so the autosave knows where to save to?

👍: 0 ⏩: 1

KimiSynth In reply to IrishWolven [2016-08-29 19:17:45 +0000 UTC]

Yes
I opened sai then autosave
I saved a canvas without drawing anything on it first, then drew on it something like 5-10 minutes
I closed the canvas without saving manualy, then I reopened it and I saw nothing that I did, just a white document like I saved manually first

👍: 0 ⏩: 1

IrishWolven In reply to KimiSynth [2016-08-31 14:07:01 +0000 UTC]

Then I don't know what's wrong, or how to fix it. 

👍: 0 ⏩: 0

KimiSynth In reply to KimiSynth [2016-08-28 23:06:44 +0000 UTC]

When I open the .bat file it does the same

👍: 0 ⏩: 0

smolroll [2016-07-05 00:23:57 +0000 UTC]

So after we do all this we have to click the .bat file so SAI can autosave?

👍: 0 ⏩: 1

IrishWolven In reply to smolroll [2016-07-06 12:01:15 +0000 UTC]

You can run the autosave.exe separately from SAI is you wish to do so, the .bat file isn't needed to make it work. The .Bat file allows you to open both SAI and the autosave at the same time which saves you the effort of having to run the program individually yourself. 

👍: 0 ⏩: 1

smolroll In reply to IrishWolven [2016-07-07 04:08:27 +0000 UTC]

okay so, if I open SAI, the autosave automatically starts working?

👍: 0 ⏩: 1

IrishWolven In reply to smolroll [2016-07-07 19:20:45 +0000 UTC]

Opening SAI.exe on it's own will not automatically activate the autosave.exe 

If you open SAI.exe separately you must manually activate autosave.exe yourself in order to activate the autosave function. 

The Bat. file tutorial allows you to code your own new desktop shortcut that will run SAI.exe and the autosave.exe together. The .bat file become your new shortcut to run both programs. 

👍: 0 ⏩: 1

smolroll In reply to IrishWolven [2016-07-07 19:57:51 +0000 UTC]

how would I pin the .bat file to my taskbar so i wont have to search in my File Explorer everytime? (I have Windows 10 btw)
And also, how would I make the "save" pop up stop popping up every 3-ish minutes and everytime i go back to the SAI window on my laptop? It never did that before on my desktop version of Windows 8.

👍: 0 ⏩: 2

IrishWolven In reply to smolroll [2016-07-07 21:23:39 +0000 UTC]

Also if it interests you I have uploaded new autosave scripts that need testing, if you are willing to help. ^^ irishwolven.deviantart.com/jou…

👍: 0 ⏩: 1

smolroll In reply to IrishWolven [2016-07-07 21:31:57 +0000 UTC]

for SAI?

👍: 0 ⏩: 1

IrishWolven In reply to smolroll [2016-07-07 21:35:14 +0000 UTC]

for SAI. The original saves every minute. The new ones will save at either 5, 10, 15, or 20 minute intervals. 

👍: 0 ⏩: 0

IrishWolven In reply to smolroll [2016-07-07 20:49:16 +0000 UTC]

Right click the .bat file and select 'Send to Desktop' to create a shortcut.  On the desktop shortcut right click it and select 'Properties' 

Where it says 'Target' you will see a command path to where the shortcut is saved to your desktop. Don't delete it, simply add 'Explorer' then space, to the beginning of the command path before the C:\

Example: Explorer C:\My Documents\autosave.bat 

Click apply, then okay. 

You'll notice the icon to the shortcut has changed to a folder, don't worry, just drag and drop the shortcut onto your taskbar to pin it.  

Optional: Before you pin it you can change the image of the icon if you wish. Simply right click -> properties -> chnage icon -> browse -> direct it to where you have saved your desired Icon image (It should be an .ico file) and your done. 

Personally I like this .ico file ( vignette3.wikia.nocookie.net/p…

👍: 0 ⏩: 1

smolroll In reply to IrishWolven [2016-07-07 21:46:08 +0000 UTC]

how would I save an image as a .ico?

👍: 0 ⏩: 1

IrishWolven In reply to smolroll [2016-07-07 21:48:03 +0000 UTC]

I don't know. Best to find and save a pre-existing one.

👍: 0 ⏩: 0

catwithoutwhiskers [2016-06-05 10:46:45 +0000 UTC]

Mine doesn't work at all. It's saved in Windows (C : ) > PaintToolSAI and that's all. Nothing works for it,

👍: 0 ⏩: 1

IrishWolven In reply to catwithoutwhiskers [2016-06-05 10:48:47 +0000 UTC]

screenshots please of batch file and where your files are saved

👍: 0 ⏩: 1

catwithoutwhiskers In reply to IrishWolven [2016-06-05 14:04:49 +0000 UTC]

sta.sh/0jtt36ib407

👍: 0 ⏩: 1

IrishWolven In reply to catwithoutwhiskers [2016-06-05 15:24:09 +0000 UTC]

Start "SAI" "C:\Paint Tool SAI\ SAI.exe" %1 

^ What it should be.

It didn't work because you wrote windows in the command path which directed it to the folder of that name and not Paint Tool SAI folder. The Drive name is also called windows, which is why I assume you wrote it in, but you only need to write the drive letter as that is what the computer recognises it as. 

👍: 0 ⏩: 1

catwithoutwhiskers In reply to IrishWolven [2016-06-06 14:51:12 +0000 UTC]

It still doesn't work. Cant be arsed with it by now.

👍: 0 ⏩: 1

IrishWolven In reply to catwithoutwhiskers [2016-06-06 16:01:29 +0000 UTC]

did you try the second option in the journal that's specific to having the files stored directly into the C drive. Because the initial version is for when you have it saved in My Documents. 

👍: 0 ⏩: 0

Sketching-Shadows [2016-05-10 01:45:16 +0000 UTC]

It says it can't find it and I copied it exactly???

👍: 0 ⏩: 1

IrishWolven In reply to Sketching-Shadows [2016-05-10 17:23:38 +0000 UTC]

can you please provide a screenshot of your batch file and another as to where you have the autosave.exe saved and SAI.exe saved.

👍: 0 ⏩: 1

Sketching-Shadows In reply to IrishWolven [2016-05-11 00:39:51 +0000 UTC]

Wait, does the 1% matter? I forgot to put that when I redid it and it worked. .3.

👍: 0 ⏩: 0

Daluniak [2016-05-08 17:34:04 +0000 UTC]

On the last three intructions, when i right click the normal sai it doesn't have the option 'open with deafult program'?

👍: 0 ⏩: 1

IrishWolven In reply to Daluniak [2016-05-08 20:00:03 +0000 UTC]

Are you trying to open SAI itself with a default program?

That instruction if for setting up to open Photoshop files (.PSD) to open with SAI

👍: 0 ⏩: 1

Daluniak In reply to IrishWolven [2016-05-08 20:31:42 +0000 UTC]

Ah don't worry I think I understood what you meant wrong, I got it anywho, thanks c:

👍: 0 ⏩: 0

AoArchangel [2016-03-25 05:12:42 +0000 UTC]

I typed out the command in the batch file where the files are located, but it says it can't find it :0 I had it starting in the hard drive (OS(C: )), but it didn't work. Then I typed computer in front of it, but it still didn't work. I'm really stuck :'D

👍: 0 ⏩: 1

IrishWolven In reply to AoArchangel [2016-03-25 05:37:57 +0000 UTC]

Screenshots of what you've typed in the batch file, and where you're files are currently saved, please. 

👍: 0 ⏩: 1

AoArchangel In reply to IrishWolven [2016-03-25 05:42:24 +0000 UTC]

I think this has it all:

👍: 0 ⏩: 1

IrishWolven In reply to AoArchangel [2016-03-26 00:00:35 +0000 UTC]

Ahhh I think I know what the problem is, it's because you have the files saved to the Program Files Directory, normally or at least I do, people have them saved to Documents etc. 

For a batch file to work with something located in the program files it requires a different approach. 

@ echo off  (No space between @ and Echo)
start "SAI" C:\"Program Files\Paint Tool SAI\App\sai.exe"
start "Autosave" C:\"Program Files\autosave.exe"


edit: "C:\Program Files" <- Or you can try it like this. 

I'm no I.T wizard but this may work. If not try and add %1 after sai.exe" 

If that doesn't work than I suggest moving Paint Tool SAI and the autosave.exe out of your program files and saving them to a new location in your documents and trying the approach in the Journal. 

👍: 0 ⏩: 1

AoArchangel In reply to IrishWolven [2016-03-26 00:25:13 +0000 UTC]

That did the trick! Thank you!
You say you're not an I.T wizard, but you sure do know your stuff XD Thanks again

👍: 0 ⏩: 1

IrishWolven In reply to AoArchangel [2016-03-26 02:13:02 +0000 UTC]

Well shucks.  Honestly though I just look stuff up online and try to fit it to what's needed.

I am hoping to figure out how to edit .exe files and will try and provide auto saves files for 5 mins, 10 mins, 15 mins, 30 mins and 1 hour intervals.  

👍: 0 ⏩: 1


| Next =>