Skip to content

Commit

Permalink
1.005.34:
Browse files Browse the repository at this point in the history
Added:
-Export will save a backup copy of your code that you export
  • Loading branch information
maestrith committed Mar 9, 2021
1 parent 85a5d98 commit 9e4a95a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
16 changes: 10 additions & 6 deletions AHK-Studio.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -7180,15 +7180,19 @@ Export(){
Branch:=InputBox(CSC().sc+0,"Branch","Enter the branch you wish to use for this Export","Beta")
Text:=RegExReplace(Text,"(\x3bauto_branch)","Branch:=" Chr(34) Branch Chr(34))
}
FileSelectFile,filename,%warn%,% indir.text,Export Compiled AHK,*.ahk
SplitPath,filename,,outdir
filename:=InStr(filename,".ahk")?filename:filename ".ahk"
FileDelete,%filename%
file:=FileOpen(filename,"rw","UTF-8"),file.Seek(0),file.Write(Text),file.Length(file.length)
FileSelectFile,FileName,%warn%,% indir.text,Export Compiled AHK,*.ahk
SplitPath,FileName,,outdir
FileName:=InStr(FileName,".ahk")?FileName:FileName ".ahk"
if(FileExist(FileName)){
SplitPath,FileName,,Dir,Ext,NNE
FormatTime,Date,%A_Now%,yyyy-MM-dd HH-mm-ss
FileMove,%FileName%,%Dir%\%NNE% %Date%.%Ext%
}
file:=FileOpen(FileName,"rw","UTF-8"),file.Seek(0),file.Write(Text),file.Length(file.length)
if(!indir)
indir:=Settings.Add("export/file",{file:SSN(Current(1),"@file").text},,1)
if(outdir)
indir.text:=filename
indir.text:=FileName
}
Extract(Main){
static ;,ADODB:=ComObjCreate("ADODB.Stream")
Expand Down
5 changes: 3 additions & 2 deletions AHK-Studio.text
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
1.005.33
- Changed the default branch to "main" because Github changed it from "master" to "main"
1.005.34
Added:
-Export will save a backup copy of your code that you export

0 comments on commit 9e4a95a

Please sign in to comment.