Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Requires AutoHotkey v1.1+
- #SingleInstance Force
- #NoEnv
- SendMode Input
- SetWorkingDir %A_ScriptDir%
- ; This script makes a timestamped backup of your SaveGames folder
- ; when F5 is pressed while SB-Win64-Shipping.exe is the active window.
- #IfWinActive, ahk_exe SB-Win64-Shipping.exe
- *F5::
- ; Format current time as HH_mm_ss AM/PM
- FormatTime, MyTime,, HH_mm_ss tt
- ; Set your save directory here (update YOURUSERNAMEHERE!)
- savedir = C:\Users\YOURUSERNAMEHERE\AppData\Local\SB\Saved
- ; Create full path for the backup directory
- strTempPath = %savedir%\quicksave_backups_ahk\%A_DD%-%MyTime%
- ; Create the backup folder
- FileCreateDir, %strTempPath%
- ; Copy the SaveGames folder into the new backup directory
- FileCopyDir, %savedir%\SaveGames, %strTempPath%, 1
- Sleep, 250
- return
- #If
Advertisement
Add Comment
Please, Sign In to add comment