fixed grabbing Locals Video Share Link
This commit is contained in:
@@ -67,7 +67,6 @@ global VideoFilepath
|
||||
global VideoThumbFilepath
|
||||
global VideoTags
|
||||
global VideoDescription
|
||||
global SocialMediaDescription
|
||||
global DiscordErrorLoggingWebhookBotURL
|
||||
global DiscordVideosWebhookURL
|
||||
global VideoFolderDir
|
||||
@@ -464,85 +463,87 @@ if(PassedInArgument2_Action = "Scheduled"){
|
||||
; }
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
; Main GUI Window
|
||||
; ------------------------------------------------
|
||||
gosub, SetAndShowMainGUI
|
||||
; Main GUI Window
|
||||
; ------------------------------------------------
|
||||
; Write current project to ini file for easy reloading
|
||||
IniWrite, %BodyTextFilePath%, %SettingsIniFilepath%, %ScriptSettingsSection%, LastPost
|
||||
|
||||
gosub, SetAndShowMainGUI
|
||||
|
||||
; Write current project to ini file for easy reloading
|
||||
IniWrite, %BodyTextFilePath%, %SettingsIniFilepath%, %ScriptSettingsSection%, LastPost
|
||||
RunTimeToShowGui := round(((A_TickCount - UStartTime) / 1000), 2)
|
||||
|
||||
Return
|
||||
|
||||
RunTimeToShowGui := round(((A_TickCount - UStartTime) / 1000), 2)
|
||||
; -------------------------------GUI GoSubs-------------------------------
|
||||
; Kill the script if user clicks on cancel button
|
||||
KillScript:
|
||||
; GuiClose:
|
||||
ExitApp
|
||||
Return
|
||||
|
||||
Return
|
||||
PauseScript:
|
||||
Pause,Toggle
|
||||
Return
|
||||
|
||||
; -------------------------------GUI GoSubs-------------------------------
|
||||
; Kill the script if user clicks on cancel button
|
||||
KillScript:
|
||||
; GuiClose:
|
||||
ExitApp
|
||||
Return
|
||||
CancelPost:
|
||||
GuiClose:
|
||||
; ExitApp
|
||||
Gui, Submit,
|
||||
Return
|
||||
|
||||
PauseScript:
|
||||
Pause,Toggle
|
||||
Return
|
||||
ReloadScript:
|
||||
Reload
|
||||
Return
|
||||
|
||||
CancelPost:
|
||||
GuiClose:
|
||||
; ExitApp
|
||||
Gui, Submit,
|
||||
Return
|
||||
; Gets activated each time that text gets input into any of the text boxes
|
||||
; updates the variables with the new text
|
||||
UpdateVars:
|
||||
Gui, Submit, NoHide
|
||||
Return
|
||||
|
||||
ReloadScript:
|
||||
Reload
|
||||
Return
|
||||
|
||||
; Gets activated each time that text gets input into any of the text boxes
|
||||
; updates the variables with the new text
|
||||
UpdateVars:
|
||||
Gui, Submit, NoHide
|
||||
Return
|
||||
|
||||
SubmitDescription:
|
||||
Gui, Submit, NoHide
|
||||
DescriptionCharCount := StrLen(VideoDescription)
|
||||
GuiControl,, DescriptionCharCount, %DescriptionCharCount%
|
||||
Return
|
||||
SubmitDescription:
|
||||
Gui, Submit, NoHide
|
||||
DescriptionCharCount := StrLen(VideoDescription)
|
||||
GuiControl,, DescriptionCharCount, %DescriptionCharCount%
|
||||
Return
|
||||
|
||||
|
||||
|
||||
; Open folder of the project
|
||||
OpenProjectFolder:
|
||||
run, %VideoFolderDir%
|
||||
Return
|
||||
; Open folder of the project
|
||||
OpenProjectFolder:
|
||||
if(FileExist(VideoFolderDir))
|
||||
run, %VideoFolderDir%
|
||||
else,
|
||||
msgbox, Cannot Open Folder as it no longer exists at:`n%VideoFolderDir%
|
||||
Return
|
||||
|
||||
ClearVideoLinks:
|
||||
FileDelete, %VideoLinksIniFile%
|
||||
Return
|
||||
ClearVideoLinks:
|
||||
FileDelete, %VideoLinksIniFile%
|
||||
Return
|
||||
|
||||
|
||||
|
||||
ToggleTestingMode:
|
||||
ToggleTestingMode()
|
||||
run, "%A_ScriptFullPath%" "LastPost"
|
||||
Return
|
||||
ToggleTestingMode:
|
||||
ToggleTestingMode()
|
||||
run, "%A_ScriptFullPath%" "LastPost"
|
||||
Return
|
||||
|
||||
ToggleDevMode:
|
||||
ToggleDevMode()
|
||||
run, "%A_ScriptFullPath%" "LastPost"
|
||||
Return
|
||||
ToggleDevMode:
|
||||
ToggleDevMode()
|
||||
run, "%A_ScriptFullPath%" "LastPost"
|
||||
Return
|
||||
|
||||
/*
|
||||
OpenGiteaPage:
|
||||
@@ -1177,6 +1178,10 @@ Return
|
||||
; ------------------------------------------------
|
||||
#Include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\Shared-GoTos.ahk
|
||||
|
||||
; Special Website Functions
|
||||
; ------------------------------------------------
|
||||
#Include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\Locals-Functions.ahk
|
||||
|
||||
; GUI Windows
|
||||
; ------------------------------------------------
|
||||
#include C:\Users\%A_Username%\Syncthing\Git\Freedomain-Video-Uploader\Modules\GUI-Main-Window.ahk
|
||||
|
||||
Reference in New Issue
Block a user