Guest User

quicksave.ahk

a guest
Jun 20th, 2025
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. #Requires AutoHotkey v1.1+
  2. #SingleInstance Force
  3. #NoEnv
  4. SendMode Input
  5. SetWorkingDir %A_ScriptDir%
  6.  
  7. ; This script makes a timestamped backup of your SaveGames folder
  8. ; when F5 is pressed while SB-Win64-Shipping.exe is the active window.
  9.  
  10. #IfWinActive, ahk_exe SB-Win64-Shipping.exe
  11.  
  12. *F5::
  13. ; Format current time as HH_mm_ss AM/PM
  14. FormatTime, MyTime,, HH_mm_ss tt
  15.  
  16. ; Set your save directory here (update YOURUSERNAMEHERE!)
  17. savedir = C:\Users\YOURUSERNAMEHERE\AppData\Local\SB\Saved
  18.  
  19. ; Create full path for the backup directory
  20. strTempPath = %savedir%\quicksave_backups_ahk\%A_DD%-%MyTime%
  21.  
  22. ; Create the backup folder
  23. FileCreateDir, %strTempPath%
  24.  
  25. ; Copy the SaveGames folder into the new backup directory
  26. FileCopyDir, %savedir%\SaveGames, %strTempPath%, 1
  27.  
  28. Sleep, 250
  29. return
  30.  
  31. #If
  32.  
Advertisement
Add Comment
Please, Sign In to add comment