|
|
@ -6,6 +6,7 @@ SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
|
|
|
CoordMode, ToolTip, Screen
|
|
|
|
CoordMode, ToolTip, Screen
|
|
|
|
CoordMode, Mouse, Screen
|
|
|
|
CoordMode, Mouse, Screen
|
|
|
|
FileEncoding, UTF-8-RAW ; Needed for special symbols that are used in video descritions
|
|
|
|
FileEncoding, UTF-8-RAW ; Needed for special symbols that are used in video descritions
|
|
|
|
|
|
|
|
DetectHiddenWindows, ON ; used for finding Running .ahk scripts
|
|
|
|
|
|
|
|
|
|
|
|
; Only Set tool tray icon if this is the source .ahk script.
|
|
|
|
; Only Set tool tray icon if this is the source .ahk script.
|
|
|
|
; The .exe has the icon compiled into it
|
|
|
|
; The .exe has the icon compiled into it
|
|
|
@ -180,10 +181,21 @@ if(DiscordErrorLoggingWebhookBotURL = ""){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;---Auto Updater Settings---
|
|
|
|
; Auto Updater Settings
|
|
|
|
;------------------------------------------------
|
|
|
|
; ------------------------------------------------
|
|
|
|
global GitReleasesAPIURL
|
|
|
|
global GitReleasesAPIURL
|
|
|
|
GitReleasesAPIURL = https://freedomain.dev/api/v1/repos/yuriy/Freedomain-Video-Uploader/releases
|
|
|
|
GitReleasesAPIURL = https://freedomain.dev/api/v1/repos/yuriy/video-uploader/releases
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Post Scheduler Settings
|
|
|
|
|
|
|
|
; ------------------------------------------------
|
|
|
|
|
|
|
|
global PostSchedulerGitReleasesAPIURL
|
|
|
|
|
|
|
|
PostSchedulerGitReleasesAPIURL = https://freedomain.dev/api/v1/repos/yuriy/post-scheduler/releases
|
|
|
|
|
|
|
|
IniRead, PostSchedulerVersion, %SettingsIniFilepath%, Freedomain Post Scheduler, Version, 0.0
|
|
|
|
|
|
|
|
IniRead, PostSchedulerFilepath, %SettingsIniFilepath%, Filepaths, PostScheduler, %A_Space%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Msgbox % "PostSchedulerVersion: " PostSchedulerVersion
|
|
|
|
|
|
|
|
; IniRead, OutputVar, Filename, Section, Key [, Default]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;---LBRY Settings---
|
|
|
|
;---LBRY Settings---
|
|
|
@ -449,96 +461,100 @@ if(PassedInArgument2_Action = "Scheduled"){
|
|
|
|
(InStr(PassedInArgument3_Details, "Brighteon"))?(Brighteon := 1) : (Brighteon := 0)
|
|
|
|
(InStr(PassedInArgument3_Details, "Brighteon"))?(Brighteon := 1) : (Brighteon := 0)
|
|
|
|
(InStr(PassedInArgument3_Details, "DailyMotion"))?(DailyMotion := 1) : (DailyMotion := 0)
|
|
|
|
(InStr(PassedInArgument3_Details, "DailyMotion"))?(DailyMotion := 1) : (DailyMotion := 0)
|
|
|
|
|
|
|
|
|
|
|
|
; }
|
|
|
|
; }
|
|
|
|
goto, StartScheduledPost
|
|
|
|
goto, StartScheduledPost
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;---/Read Info From Previous Run And Set Upload Options---
|
|
|
|
;---/Read Info From Previous Run And Set Upload Options---
|
|
|
|
;--------------------------------------------------------
|
|
|
|
;--------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
if(PassedInArgument2_Action = "ShowResults"){
|
|
|
|
if(PassedInArgument2_Action = "ShowResults"){
|
|
|
|
goto, DisplayResults
|
|
|
|
goto, DisplayResults
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Main GUI Window
|
|
|
|
; Main GUI Window
|
|
|
|
; ------------------------------------------------
|
|
|
|
; ------------------------------------------------
|
|
|
|
gosub, SetAndShowMainGUI
|
|
|
|
gosub, SetAndShowMainGUI
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Write current project to ini file for easy reloading
|
|
|
|
; Write current project to ini file for easy reloading
|
|
|
|
IniWrite, %BodyTextFilePath%, %SettingsIniFilepath%, %ScriptSettingsSection%, LastPost
|
|
|
|
IniWrite, %BodyTextFilePath%, %SettingsIniFilepath%, %ScriptSettingsSection%, LastPost
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RunTimeToShowGui := round(((A_TickCount - UStartTime) / 1000), 2)
|
|
|
|
RunTimeToShowGui := round(((A_TickCount - UStartTime) / 1000), 2)
|
|
|
|
|
|
|
|
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
; -------------------------------GUI GoSubs-------------------------------
|
|
|
|
; -------------------------------GUI GoSubs-------------------------------
|
|
|
|
; Kill the script if user clicks on cancel button
|
|
|
|
; Kill the script if user clicks on cancel button
|
|
|
|
KillScript:
|
|
|
|
KillScript:
|
|
|
|
; GuiClose:
|
|
|
|
; GuiClose:
|
|
|
|
ExitApp
|
|
|
|
ExitApp
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
PauseScript:
|
|
|
|
PauseScript:
|
|
|
|
Pause,Toggle
|
|
|
|
Pause,Toggle
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
CancelPost:
|
|
|
|
CancelPost:
|
|
|
|
GuiClose:
|
|
|
|
GuiClose:
|
|
|
|
; ExitApp
|
|
|
|
; ExitApp
|
|
|
|
Gui, Submit,
|
|
|
|
Gui, Submit,
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
ReloadScript:
|
|
|
|
ReloadScript:
|
|
|
|
Reload
|
|
|
|
Reload
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
; Gets activated each time that text gets input into any of the text boxes
|
|
|
|
; Gets activated each time that text gets input into any of the text boxes
|
|
|
|
; updates the variables with the new text
|
|
|
|
; updates the variables with the new text
|
|
|
|
UpdateVars:
|
|
|
|
UpdateVars:
|
|
|
|
Gui, Submit, NoHide
|
|
|
|
Gui, Submit, NoHide
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
SubmitDescription:
|
|
|
|
SubmitDescription:
|
|
|
|
Gui, Submit, NoHide
|
|
|
|
Gui, Submit, NoHide
|
|
|
|
DescriptionCharCount := StrLen(VideoDescription)
|
|
|
|
DescriptionCharCount := StrLen(VideoDescription)
|
|
|
|
GuiControl,, DescriptionCharCount, %DescriptionCharCount%
|
|
|
|
GuiControl,, DescriptionCharCount, %DescriptionCharCount%
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Open folder of the project
|
|
|
|
; Open folder of the project
|
|
|
|
OpenProjectFolder:
|
|
|
|
OpenProjectFolder:
|
|
|
|
run, %VideoFolderDir%
|
|
|
|
run, %VideoFolderDir%
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
ClearVideoLinks:
|
|
|
|
ClearVideoLinks:
|
|
|
|
FileDelete, %VideoLinksIniFile%
|
|
|
|
FileDelete, %VideoLinksIniFile%
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
OpenErrorLog:
|
|
|
|
|
|
|
|
run, %ErrorLoggingFilePath%
|
|
|
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ToggleTestingMode:
|
|
|
|
|
|
|
|
ToggleTestingMode()
|
|
|
|
|
|
|
|
run, "%A_ScriptFullPath%" "LastPost"
|
|
|
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ToggleDevMode:
|
|
|
|
ToggleTestingMode:
|
|
|
|
ToggleDevMode()
|
|
|
|
ToggleTestingMode()
|
|
|
|
run, "%A_ScriptFullPath%" "LastPost"
|
|
|
|
run, "%A_ScriptFullPath%" "LastPost"
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ToggleDevMode:
|
|
|
|
|
|
|
|
ToggleDevMode()
|
|
|
|
|
|
|
|
run, "%A_ScriptFullPath%" "LastPost"
|
|
|
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
OpenGiteaPage:
|
|
|
|
OpenGiteaPage:
|
|
|
|
run, https://freedomain.dev/yuriy/video-uploader
|
|
|
|
run, https://freedomain.dev/yuriy/video-uploader
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OpenErrorLog:
|
|
|
|
|
|
|
|
run, %ErrorLoggingFilePath%
|
|
|
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
UncheckAllPlatforms:
|
|
|
|
UncheckAllPlatforms:
|
|
|
|
GuiControl,,Bitchute, 0
|
|
|
|
GuiControl,,Bitchute, 0
|
|
|
|
GuiControl,,Locals, 0
|
|
|
|
GuiControl,,Locals, 0
|
|
|
@ -941,8 +957,11 @@ IniWrite, %VideoTitle%, %ScheduleFileFilepath%, Schedule-Info, Title
|
|
|
|
|
|
|
|
|
|
|
|
IniWrite, %VideoSites%, %ScheduleFileFilepath%, Schedule-Info, Sites
|
|
|
|
IniWrite, %VideoSites%, %ScheduleFileFilepath%, Schedule-Info, Sites
|
|
|
|
|
|
|
|
|
|
|
|
IniRead, OutputVar, Filename, Section, Key [, Default]
|
|
|
|
if(!FileExist(PostSchedulerFilepath)){
|
|
|
|
|
|
|
|
gosub, UpdatePostScheduler
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else,
|
|
|
|
|
|
|
|
run, %PostSchedulerFilepath%
|
|
|
|
|
|
|
|
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|