you can make screenshots much easier by using "https://www.irfanview.com/". free tool -> install -> next -> next -> next -> finish and done. then you can simply do the following:
is there an AHK script that copies and pastes a whole folder? i have one ive been using for years for one save file at a time. i feel more comfortable backing up the whole folder on this game.
sorry late "reply". i left out the part where i was wondering about a manual AHK folder(or multiple files) copy/paste with only a few lines. the one ive been using is only like 10 lines to copy a file with whatever key press, automatically pastes it in a backup folder. and another key press to paste the last copy back in game save folder. i opened your backup.ahk and its huge. i imagine a lot of that is for autosave backups? just a simple f5 save folder(or set of files) and f8 paste folder(or set of files). not only to have a small script, but also so i can understand it better. im not very skilled in script reading/writing. do you use paste bin? or maybe tell me what to delete/hide from yours. maybe i could paste mine. its kind of a mess since i been adjusting it for decades :D xo
In the conversation thread you replied to. My very first post was: "Mostly the included gdi+ library to make screenshots. My own code is about 100 lines for convenience stuff like limiting the number of backup folders."
If you scroll down the file in a text editor, very soon you'll encounter a bunch of information about the gdi+ library. Everything under that point is that library, and that is all used to make screenshots without requiring other programs to be installed. Everything above that is fairly simple. And I did try to give the functions descriptive names.
Also, I am not quite sure what your exact usecase is. The intended configuration is all at the top: CheckInterval := 1000 Time in milliseconds the script checks for updates to the monitored files.
BackupFolder := "backup" What is the folder name the files get copied to.
MaxBackups := 100 Number of backups, oldest get deleted automatically.
Screenshot := 1 Add a screenshot to the backups, 1 for yes, 0 for no.
FilesToBackup := "*.*" What files should get monitored and backed up. By default it's set to *.*, which means all files with an an file extention. If for example you only wacht to monitor and backup .txt while you repalce the *.* with *.txt
ExcludeFilesFromCheck := ["backup.ahk", "data00-1.bin"] Files that are included in the backup, but you don't want to monitor for changes. In the case of Dragon Dogma 2, data00-1.bin is for the game settings. I wanted to include that in the backup, but not to create a new backup every time you change some graphic option or keybinding.
ExcludeFilesFromCopy := ["backup.ahk"] Files that might be included on the "FilesToBackup", but you want to explicitly exclude from being copied to the backup.
ScreenshotWindowName := "Dragon's Dogma 2" The window name used for creating a screenshot.
What do you want to do that is missing? If it's backing up files inside subfolders, that is possible but will make the script a bit more complex, since you'd have to keep track of what files are in what folder and what you want to include in your backups. Like do you want to backup all files from all subfolders if any 1 file changes, or do you want to backup only the files from the same subfolder.
I've asked you before not to spam, this is the last time I am responding to a spammed question from you. Asking once is more than enough.
It sounds like you ran the script as admin and then again as normal user. A normal user can't exit a program started by an admin, so it can't exit the already running script. You can exit the script manually and start it again, to get things working normally.
I am sorry . I did not mean to be rude . I have a problem in internet . Sorry I did not see that i ask 5 times and It is my first time I used comment in this site .
Following the problem . I run it again and showed me this message : Error at line 1
So any file you download from this website is in a some sort of zip file. You need to extract that first to get the actual script. This script is in a 7zip archive called "backup.7z". If you use a recent Windows 11 version it can extract those by default, you can rightclick the backup.7z file and use "extract all...". If your version of Windows can't do that, you'll need a program like WinRAR or 7Zip.
Hi there, Im trying to clarify how this all work So I downloaded autohotkey program, then place the script in the save folder, and do I run it everytime before starting the game? Does it create a folder of backup saves? How do I use the backup saves?
Sorry all the questions, i havent done this type of thing before :(
You can run the script whenever. It monitors the save files and makes a backup when ever one is changed, so as long as the script is running when you save the game it's fine.
The script creates a backup folder inside the folder with the save files, and creates subfolder named by date and time. Then it creates a screenshot of Dragon Dogma, and copies all the save files and the screenshot to the folder named by date and time.
If you want to go back to an older save, you'll have to copy it back manually. The folder names and screenshots are hopefully enough to help you decide which save you want to return to.
Don't spam please. Asking 5 times is rude and doesn't get you answers any faster. You can read the autohotkey documentation for an explanation how to run an autohotkey script: https://www.autohotkey.com/docs/v1/Program.htm#run
This mod is a Must-Have!! Easy, straightforward. So damn convenient! Due to your mod, I was able to go back to a prior save right before some idiot named npcs decided to run headlong to a cyclops. Didn't end well for them.......
Install the "Autohotkey" program. Place the backup.ahk in the Dragon Dogma save folder. Double click it, you'll see a green H icon in your systemtray, that means the script is running. To exit the script rightclick that systemtray icon.
ok so there is an off site requirement then, I was asking because it is not noted on the requirements section, gonna check for this autohotkey program and see
33 comments
free tool -> install -> next -> next -> next -> finish and done.
then you can simply do the following:
_FILEPATH_SCREENSHOTS := "X:\__windows\Pictures\Screenshots"
fd := _FILEPATH_SCREENSHOTS
status := Format("{1:02u}_{2:02u}_{3:02u}", A_Hour, A_Min, A_Sec)
runwait,"%a_programfiles%\IrfanView\i_view64.exe" "/capture=0 /convert=%fd%\%status%__REPAIR.bmp"
outputname is then : 02_09_53__REPAIR.bmp
please can you provide video ?
i opened your backup.ahk and its huge. i imagine a lot of that is for autosave backups?
just a simple f5 save folder(or set of files) and f8 paste folder(or set of files). not only to have a small script, but also so i can understand it better. im not very skilled in script reading/writing.
do you use paste bin? or maybe tell me what to delete/hide from yours. maybe i could paste mine. its kind of a mess since i been adjusting it for decades :D
xo
"Mostly the included gdi+ library to make screenshots. My own code is about 100 lines for convenience stuff like limiting the number of backup folders."
If you scroll down the file in a text editor, very soon you'll encounter a bunch of information about the gdi+ library. Everything under that point is that library, and that is all used to make screenshots without requiring other programs to be installed. Everything above that is fairly simple. And I did try to give the functions descriptive names.
Also, I am not quite sure what your exact usecase is. The intended configuration is all at the top:
CheckInterval := 1000
Time in milliseconds the script checks for updates to the monitored files.
BackupFolder := "backup"
What is the folder name the files get copied to.
MaxBackups := 100
Number of backups, oldest get deleted automatically.
Screenshot := 1
Add a screenshot to the backups, 1 for yes, 0 for no.
FilesToBackup := "*.*"
What files should get monitored and backed up. By default it's set to *.*, which means all files with an an file extention. If for example you only wacht to monitor and backup .txt while you repalce the *.* with *.txt
ExcludeFilesFromCheck := ["backup.ahk", "data00-1.bin"]
Files that are included in the backup, but you don't want to monitor for changes. In the case of Dragon Dogma 2, data00-1.bin is for the game settings. I wanted to include that in the backup, but not to create a new backup every time you change some graphic option or keybinding.
ExcludeFilesFromCopy := ["backup.ahk"]
Files that might be included on the "FilesToBackup", but you want to explicitly exclude from being copied to the backup.
ScreenshotWindowName := "Dragon's Dogma 2"
The window name used for creating a screenshot.
What do you want to do that is missing? If it's backing up files inside subfolders, that is possible but will make the script a bit more complex, since you'd have to keep track of what files are in what folder and what you want to include in your backups. Like do you want to backup all files from all subfolders if any 1 file changes, or do you want to backup only the files from the same subfolder.
It showed to me after I open the file with autohotkey
What I can do ??? @aiqa
aiqa
It sounds like you ran the script as admin and then again as normal user. A normal user can't exit a program started by an admin, so it can't exit the already running script. You can exit the script manually and start it again, to get things working normally.
Following the problem . I run it again and showed me this message : Error at line 1
Can you help ?
First I downloaded the Auto then I copy the backup file that you made (backup.ahk-228-1-2-1711725380 )
then I open the file (backup.ahk-228-1-2-1711725380 ) right click then choose open with autohotkey but it showing me this message :
Error at line 1
line text :7z1/4
Error: the line does not contain a recognized action
The program will exist
And when i opened the file I saw an strange language like that :
7z¼¯' wGxُI b ي،†جلگجI] w®سâ!.ف.@f¸¯£9BوcB~;ُî‘ةشظد ره•:؛÷:_kçgOZ6,‹aâDهٌ¶ع~‹ھOحةغNظ—ٹWùµaFْآµ{بHك‡ر)ڑ¨ہ‡…³+Gت|whiY%¯yسƒ_<ز#=يحôڑ{ع¦ك8Qhكر5çأ,**‰E ””’=Œ`ù—[ق؛حزّD5n™°)¤‰E¢غؤaر–ùj-ج¶»«LHچ<0کâب±ïH¥;¬ص&(ِ@›´ffس'چ;‹ڈ)ب9¤ج‚ضNêT‰®ًَحن²2oëئ@ آc7گ/³qلU¸د¾‘|ُ¬k>‚ؤ”µ
;S’³Nٹ؟ظ]¹‹@½(: نةغH#¾…]ْ¦ü±îy¸‚س>چےژ?ْ‚ïَ¶“ءOPˆî¯َ,.ü½دœء"S¾*Qش$7ن‚م—§س¦<اض×m^لœté_Va+0×50ج0ؤHN:چىقتô–چâôzَ3„™†2„‡َو‘™Ebs Io‚Zc6ى#ٌل‹]ٌHû'w³™I،ےaèةkFrء3؟»)9gàuةىزثّـ¢‹èy—I)“ُcŒظم ؛Uئ[ل.^V*m Œe…
E·ه\ژ³6إ°êèfdأ-نگ²gfَھ-}]uBچM€@S&r=ï´ïغqw÷†è¼£0x=@ ض%<×»‹ـ¢غ¯ھ›Xxنض긶تت(،¤~®ث‘à;“>鋶کژ"
b?œëه"b|…>»؟قl&ٍYµë ؤھخ»®®eےئ|»<مںP¯¨îY¹ع8چ¦َ}§|
)_°;ىà¼J÷¾Oà+Q2§—جlc¦-جےہةٍ؛MM±¯N›…5خ*s؛Ko™[³®²ظ«ڑً$يَêŒھ÷
But since I click open with autohotkey . It does not show me anything
What is the problem
It showed to me after I open the file with autohotkey
What I can do ???
So I downloaded autohotkey program, then place the script in the save folder, and do I run it everytime before starting the game?
Does it create a folder of backup saves?
How do I use the backup saves?
Sorry all the questions, i havent done this type of thing before :(
The script creates a backup folder inside the folder with the save files, and creates subfolder named by date and time. Then it creates a screenshot of Dragon Dogma, and copies all the save files and the screenshot to the folder named by date and time.
If you want to go back to an older save, you'll have to copy it back manually. The folder names and screenshots are hopefully enough to help you decide which save you want to return to.
please can you provide video ?
please can you provide video ?
please can you provide video ?
Place the backup.ahk in the Dragon Dogma save folder.
Double click it, you'll see a green H icon in your systemtray, that means the script is running.
To exit the script rightclick that systemtray icon.