howto use it:
RunWait, SaveLast5_to_BackupSL5.ahk "%A_ScriptFullPath%" "c:/backup", %A_ScriptDir%
its only copy if you really changed something.
it not changing the script name (nowhere). it leaves your folder structure as it is (in backup some mor foldernames addet, see screenshot).
i run it every time if i sava a script automatically.
source: https://github.com/sl5net/global-IntelliSense-everywhere/blob/master/Source/SaveLast5_to_BackupSL5.ahk
example images below:
SaveLast5_to_BackupSL5.ahk
SaveLast5_to_BackupSL5.ahk
- Attachments
-
- 2019-03-14 15_16_22-Table awaiting Action.png (42.14 KiB) Viewed 1594 times
-
- 2019-03-14 15_05_28-Table awaiting Action.png (41.58 KiB) Viewed 1594 times
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
- Thoughtfu1Tux
- Posts: 125
- Joined: 31 May 2018, 23:26
Re: SaveLast5_to_BackupSL5.ahk
Great work! this function is included by default in AHKStudio and is incredibly useful if you want to see a bit of code that you had in a script a week ago but took out because you didn’t think you’d be reusing it. This would be a hug benefit to people that are using other editors.
Re: SaveLast5_to_BackupSL5.ahk
where?Thoughtfu1Tux wrote: ↑18 Mar 2019, 22:29Great work! this function is included by default in AHKStudio and is incredibly useful if you want to see a bit of code that you had in a script a week ago but took out because you didn’t think you’d be reusing it. This would be a hug benefit to people that are using other editors.
I can not find it there in the source code. has it been renamed there?
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
- Thoughtfu1Tux
- Posts: 125
- Joined: 31 May 2018, 23:26
Re: SaveLast5_to_BackupSL5.ahk
Sorry, I phrased that incorrectly. A function very similiar to yours is included by default in AHKStudio. It creates a backup just about every time that you make an edit to a script. It's a little different from yours but has a very similar functionality.SL5 wrote: ↑19 Mar 2019, 01:55where?Thoughtfu1Tux wrote: ↑18 Mar 2019, 22:29Great work! this function is included by default in AHKStudio and is incredibly useful if you want to see a bit of code that you had in a script a week ago but took out because you didn’t think you’d be reusing it. This would be a hug benefit to people that are using other editors.
I can not find it there in the source code. has it been renamed there?
Re: SaveLast5_to_BackupSL5.ahk
yes, I knew that for a long time. but it is very different in two ways. First, the studio has no special versioning (sry fo my english). this simply saves everything with timestamp. if you look at the screenshots the difference will be clear to you.Thoughtfu1Tux wrote: ↑19 Mar 2019, 12:35Sorry, I phrased that incorrectly. A function very similiar to yours is included by default in AHKStudio. It creates a backup just about every time that you make an edit to a script. It's a little different from yours but has a very similar functionality.SL5 wrote: ↑19 Mar 2019, 01:55where?Thoughtfu1Tux wrote: ↑18 Mar 2019, 22:29Great work! this function is included by default in AHKStudio and is incredibly useful if you want to see a bit of code that you had in a script a week ago but took out because you didn’t think you’d be reusing it. This would be a hug benefit to people that are using other editors.
I can not find it there in the source code. has it been renamed there?
Secondly, the ahkStudio only saves Auto Hotkey files (I'm not totally sure).
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Example configuration for an IDE
Example configuration for an IDE of jetBrains: ....\AutoHotkey.exe "H:\SaveLast5_to_BackupSL5.ahk" $FilePath$ H:\BackupSaveLast5
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Return to “Scripts and Functions (v1)”
Who is online
Users browsing this forum: No registered users and 79 guests