migrated templates folder to its own directory
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,5 @@
|
|||||||
|
Freedomain Livestream Scheduler.exe
|
||||||
|
Lib/Templates-FLS/
|
||||||
Settings.ini
|
Settings.ini
|
||||||
VideoLinks.ini
|
VideoLinks.ini
|
||||||
body.txt
|
body.txt
|
||||||
|
|||||||
BIN
Assets/Icon.ico
Normal file
BIN
Assets/Icon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 101 KiB |
BIN
Assets/Icon.png
Normal file
BIN
Assets/Icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 50 KiB |
BIN
Assets/Icon.xcf
Normal file
BIN
Assets/Icon.xcf
Normal file
Binary file not shown.
84
Compile AHK to EXE.ahk
Normal file
84
Compile AHK to EXE.ahk
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
;---ENVIRONMENT---------------------------------------------------------------------
|
||||||
|
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
||||||
|
;#Warn ; Enable warnings to assist with detecting common errors.
|
||||||
|
;DetectHiddenWindows, On
|
||||||
|
#SingleInstance, Force
|
||||||
|
DetectHiddenWindows, ON
|
||||||
|
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
||||||
|
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
||||||
|
;SetKeyDelay, 500
|
||||||
|
CoordMode, ToolTip, Screen
|
||||||
|
CoordMode, Mouse, Screen
|
||||||
|
; #NoTrayIcon
|
||||||
|
; Menu, Tray, Icon, RMScriptManager.ico
|
||||||
|
|
||||||
|
;---Notes/Extra Info/#Includes------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
;---VARIABLES-----------------------------------------------------------------------
|
||||||
|
ScriptName = Freedomain Livestream Scheduler
|
||||||
|
|
||||||
|
AHKFilepath = %A_ScriptDir%\%ScriptName%.ahk
|
||||||
|
Exefilepath = %A_ScriptDir%\%ScriptName%.exe
|
||||||
|
icopath = %A_ScriptDir%\Assets\Icon.ico
|
||||||
|
VersionIniFP = %A_ScriptDir%\Version.ini
|
||||||
|
|
||||||
|
|
||||||
|
;---MAIN SCRIPT---------------------------------------------------------------------
|
||||||
|
|
||||||
|
; Bump the version number in the version.ini file
|
||||||
|
IniRead, VersionNumber, %VersionIniFP%, %ScriptName%, Version, 0.0 ; , Filename, Section, Key [, Default]
|
||||||
|
VersionNumber += .01
|
||||||
|
VersionNumber := SubStr(VersionNumber, 1, 4)
|
||||||
|
|
||||||
|
IniWrite, %VersionNumber%, %VersionIniFP%,%ScriptName%, Version
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
; Kill any active intances of the uploaders so the .exe file can be overwriten by the compilation
|
||||||
|
process, close, %ScriptName%.exe
|
||||||
|
|
||||||
|
sleep, 1000
|
||||||
|
|
||||||
|
; Delete the .exe file so it can be repalced
|
||||||
|
if(FileExist(Exefilepath)){
|
||||||
|
FileDelete, %Exefilepath%
|
||||||
|
if(ErrorLevel){
|
||||||
|
msgbox, failed to delete Exe file. Please delete manually and re-run the compiler.
|
||||||
|
ExitApp
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(!FileExist(AHKFilepath)){
|
||||||
|
msgbox, %AHKFilepath% does not exist`nExiting
|
||||||
|
ExitApp
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(!FileExist(icopath)){
|
||||||
|
msgbox, %icopath% does not exist`nExiting
|
||||||
|
ExitApp
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
run, %comspec% /c ""C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe" /in "%AHKFilepath%" /out "%exefilepath%" /icon "%icopath%""
|
||||||
|
|
||||||
|
|
||||||
|
; OldNotify(ScriptToCompile,"Compiled Successfully",5)
|
||||||
|
; sleep, 5000
|
||||||
|
ExitApp
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
;---FUNCTIONS-----------------------------------------------------------------------
|
||||||
@@ -250,7 +250,7 @@ Gui, Add, Checkbox, checked vLocals, Locals
|
|||||||
; Gui, Add, Checkbox,checked vOdysee, Odysee
|
; Gui, Add, Checkbox,checked vOdysee, Odysee
|
||||||
|
|
||||||
Gui, Font, Bold
|
Gui, Font, Bold
|
||||||
Gui, Add, Button,gSchedulePost w%ColumnTwoEditBoxWidth% y+100 gSaveAsTemplate, Save as Template
|
Gui, Add, Button,gSchedulePost w%ColumnTwoEditBoxWidth% y+50 gSaveAsTemplate, Save as Template
|
||||||
Gui, Add, Button,gSchedulePost w%ColumnTwoEditBoxWidth% gLoadTemplate, Load Template
|
Gui, Add, Button,gSchedulePost w%ColumnTwoEditBoxWidth% gLoadTemplate, Load Template
|
||||||
|
|
||||||
Gui, Font, s15
|
Gui, Font, s15
|
||||||
@@ -272,7 +272,7 @@ Return
|
|||||||
SaveAsTemplate:
|
SaveAsTemplate:
|
||||||
Gui, submit, NoHide ; Update variables for all modified fields
|
Gui, submit, NoHide ; Update variables for all modified fields
|
||||||
|
|
||||||
TemplateDirectory = %A_ScriptDir%\Lib\Templates
|
TemplateDirectory = %A_ScriptDir%\Lib\Templates-%ScriptAbbreviatedName%
|
||||||
if(!FileExist(TemplateDirectory)){
|
if(!FileExist(TemplateDirectory)){
|
||||||
FileCreateDir, %TemplateDirectory%
|
FileCreateDir, %TemplateDirectory%
|
||||||
}
|
}
|
||||||
@@ -281,7 +281,7 @@ InputBox, TemplateName, Input Name, Please Input Name for the Template:
|
|||||||
if(ErrorLevel)
|
if(ErrorLevel)
|
||||||
Return
|
Return
|
||||||
|
|
||||||
TemplateDirectory = %A_ScriptDir%\Lib\Templates\%TemplateName%
|
TemplateDirectory = %TemplateDirectory%\%TemplateName%
|
||||||
ErrorLoggingDirectory := TemplateDirectory
|
ErrorLoggingDirectory := TemplateDirectory
|
||||||
; FileCreateDir, %TemplateDirectory%
|
; FileCreateDir, %TemplateDirectory%
|
||||||
CreateErrorLoggingFiles(ErrorLoggingDirectory)
|
CreateErrorLoggingFiles(ErrorLoggingDirectory)
|
||||||
@@ -304,7 +304,7 @@ LoadTemplate:
|
|||||||
Message = Loading Template
|
Message = Loading Template
|
||||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,DiscordErrorLogging")
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,DiscordErrorLogging")
|
||||||
|
|
||||||
ErrorLoggingDirectory = %A_ScriptDir%\Lib\Templates\
|
ErrorLoggingDirectory = %A_ScriptDir%\Lib\Templates-%ScriptAbbreviatedName%\
|
||||||
FileSelectFolder, ErrorLoggingDirectory, %ErrorLoggingDirectory%
|
FileSelectFolder, ErrorLoggingDirectory, %ErrorLoggingDirectory%
|
||||||
if(ErrorLevel){
|
if(ErrorLevel){
|
||||||
Tooltip
|
Tooltip
|
||||||
|
|||||||
Submodule Lib/Freedomain-Posters-Shared-Functions updated: b8ffb10db1...2e0c81f34f
BIN
Version.ini
Normal file
BIN
Version.ini
Normal file
Binary file not shown.
Reference in New Issue
Block a user