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