|
|
|
;---GUI Variables---
|
|
|
|
;------------------------------------------------
|
|
|
|
SetGUIVariables:
|
|
|
|
GuiHeight = 800
|
|
|
|
GuiWidth = 1366
|
|
|
|
GuiFontSize = 10
|
|
|
|
|
|
|
|
ButtonHeights := 30
|
|
|
|
ResultsActionButtonHeights := 50
|
|
|
|
|
|
|
|
MarginSize := 10
|
|
|
|
MarginSizeDoubled := MarginSize * 2
|
|
|
|
MarginSizeTripled := MarginSize * 3
|
|
|
|
|
|
|
|
EditBoxWidths := (GuiWidth / 100) * 60
|
|
|
|
EditBoxHalfWidths := (EditBoxWidths / 2) - (MarginSize / 2)
|
|
|
|
OdyseeURLSlugEditWidth := (EditBoxHalfWidths / 4) * 3
|
|
|
|
|
|
|
|
PodcastNumberTextXPos := EditBoxHalfWidths + OdyseeURLSlugEditWidth + (MarginSize * 3)
|
|
|
|
PodcastNumberEditWidth := (EditBoxHalfWidths / 4) - MarginSize
|
|
|
|
|
|
|
|
EditBoxOneFourthWidth := (EditBoxWidths / 4 )
|
|
|
|
EditBoxThreeFourthsWidth := (EditBoxWidths / 4 ) * 3
|
|
|
|
|
|
|
|
|
|
|
|
ColumnOneHalfWidthXPos := EditBoxHalfWidths + MarginSizeDoubled
|
|
|
|
|
|
|
|
EditBoxThirdsWidths := (EditBoxWidths / 3) - (MarginSize / 2)
|
|
|
|
OdyseeURLSlugXPos := EditBoxHalfWidths + (MarginSize * 2)
|
|
|
|
|
|
|
|
EditBoxFourthWidths := (EditBoxWidths / 4) - (MarginSize - 2)
|
|
|
|
VideoTagsTextXPos := EditBoxHalfWidths + (MarginSize * 2)
|
|
|
|
|
|
|
|
; EditBoxHalfWidthsWithMargin := (EditBoxWidths / 2)
|
|
|
|
DescriptionCharCountXPos := EditBoxHalfWidths - 40
|
|
|
|
|
|
|
|
PageTwoXStartPos := EditBoxWidths + 50
|
|
|
|
|
|
|
|
CopyButtonWidths := 150
|
|
|
|
ResultEditBoxXPos := CopyButtonWidths + MarginSize + 5
|
|
|
|
ResultEditBoxWidth := EditBoxWidths - ( CopyButtonWidths)
|
|
|
|
|
|
|
|
ResultsEditAndCopyButtonWidth := CopyButtonWidths + ResultEditBoxWidth + MarginSize
|
|
|
|
ResultsGUIWidth := ResultsEditAndCopyButtonWidth + ErrorLogEditBoxWidth + MarginSize
|
|
|
|
|
|
|
|
|
|
|
|
ErrorLogEditBoxXPos := ResultEditBoxWidth + CopyButtonWidths + 30
|
|
|
|
ErrorLogEditBoxHeight := ButtonHeights * 14 + (MarginSize * 9)
|
|
|
|
ErrorLogEditBoxWidth := 330
|
|
|
|
|
|
|
|
|
|
|
|
ResultEditBoxHalfWidths := (((ResultEditBoxWidth + CopyButtonWidths)) - (MarginSize * 3))
|
|
|
|
ResultLBRYURLEditBoxWidthPieces := (ResultEditBoxWidth / 4)
|
|
|
|
ResultLBRYURLEditBoxWidths := ResultLBRYURLEditBoxWidthPieces * 3
|
|
|
|
|
|
|
|
ResultEditBoxThirdsWidths := (ResultEditBoxWidth / 3) - (MarginSize /3)
|
|
|
|
ResultsScreenOneThirdsWidth := (ResultEditBoxWidth + CopyButtonWidths + ErrorLogEditBoxWidth) / 3
|
|
|
|
|
|
|
|
ResultLBRYThumbEditBoxWidth := ResultLBRYURLEditBoxWidthPieces - 5
|
|
|
|
|
|
|
|
|
|
|
|
ButtonWidths := 150
|
|
|
|
ButtonXPos := GuiWidth - ButtonWidths - 15
|
|
|
|
|
|
|
|
SubmitButtonYLocation := GuiHeight - 50
|
|
|
|
SubmitButtonXLocation := GuiWidth - 90
|
|
|
|
CancelButtonXLocation := GuiWidth - 180
|
|
|
|
|
|
|
|
EditBoxHeight := 25
|
|
|
|
ThumbnailPreviewWidth := 300
|
|
|
|
PageTwoGroupBoxWidth := ThumbnailPreviewWidth + 20
|
|
|
|
|
|
|
|
; Size of Description Edit Box and the location of the checkboxes underneath them
|
|
|
|
VideoDescriptionEditBoxHeight = 100
|
|
|
|
CheckboxesStartYPos := 630
|
|
|
|
|
|
|
|
FilePathEditBoxWidths := EditBoxWidths - MarginSize - 70
|
|
|
|
SelectFileButtonWidths := 30
|
|
|
|
|
|
|
|
ButtonStartYPos := CheckboxesStartYPos + 10
|
|
|
|
MarginSquared := MarginSize * 2
|
|
|
|
|
|
|
|
if(DevMode){
|
|
|
|
MainButtonHeight := 30
|
|
|
|
SecondaryButtonHeights := 30
|
|
|
|
|
|
|
|
}
|
|
|
|
else, {
|
|
|
|
MainButtonHeight := 30
|
|
|
|
SecondaryButtonHeights := 35
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; -------------------------------GUI-------------------------------
|
|
|
|
SetAndShowMainGUI:
|
|
|
|
Gosub, SetGUIVariables
|
|
|
|
|
|
|
|
Gui, Font, s%GuiFontSize%
|
|
|
|
Gui, Margin, %MarginSize%, %MarginSize%
|
|
|
|
|
|
|
|
; Video Title
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Text,, Show Title
|
|
|
|
Gui, Add, Text, x%ColumnOneHalfWidthXPos% yp+0,Odysee URL Slug
|
|
|
|
Gui, Add, Text, x%PodcastNumberTextXPos% yp+0,Podcast #
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, y+5 x%MarginSize% w%EditBoxHalfWidths% h%EditBoxHeight% gUpdateVars vVideoTitle, %VideoTitle%
|
|
|
|
Gui, Add, Edit, yp+0 x+%MarginSize% w%OdyseeURLSlugEditWidth% h%EditBoxHeight% gUpdateVars vLBRYURLSlug, %LBRYURLSlug%
|
|
|
|
Gui, Add, Edit, yp+0 x+%MarginSize% w%PodcastNumberEditWidth% h%EditBoxHeight% gUpdateVars vPodcastNumber, %PodcastNumber%
|
|
|
|
|
|
|
|
; LBRY URL
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Text, x%MarginSize%,Video Tags (Comma Seperated)
|
|
|
|
Gui, Add, Text,x%ColumnOneHalfWidthXPos% yp+0,Podcast Tags (Comma Seperated)
|
|
|
|
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x%MarginSize% Y+5 w%EditBoxHalfWidths% h%EditBoxHeight% gUpdateVars vVideoTags, %VideoTags%
|
|
|
|
Gui, Add, Edit, yp+0 x+%MarginSize% w%EditBoxHalfWidths% h%EditBoxHeight% gUpdateVars vPodcastTags, %PodcastTags%
|
|
|
|
|
|
|
|
; Description/Summary Headers
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Text,y+%MarginSize% x%MarginSize%,Description
|
|
|
|
Gui, Add, Text,yp+0 x%ColumnOneHalfWidthXPos%,Summary
|
|
|
|
|
|
|
|
Gui, Font, Normal
|
|
|
|
; Video Description edit box
|
|
|
|
Gui, Add, Edit,x%MarginSize% y+5 w%EditBoxHalfWidths% h%VideoDescriptionEditBoxHeight% vVideoDescription gSubmitDescription,%VideoDescription%
|
|
|
|
; Video Summary Edit Box
|
|
|
|
Gui, Add, Edit,x%ColumnOneHalfWidthXPos% yp+0 w%EditBoxHalfWidths% h%VideoDescriptionEditBoxHeight% vVideoSummary gUpdateVars,%VideoSummary%
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Font, Normal
|
|
|
|
gui, font, s8
|
|
|
|
Gui, Add, Edit, x%MarginSize% y+5 vDescriptionCharCount, %DescriptionCharCount%
|
|
|
|
Gui, Add,Text, yp+4 x+%MarginSize%,Limits: DM+Bitchute = 3K, Odysee, Brighteon = 5K
|
|
|
|
; Gui, font, Bold
|
|
|
|
|
|
|
|
Gui, Font, s%GuiFontSize%
|
|
|
|
Gui, font, Bold
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Add, GroupBox,r8.5 x%MarginSize% y+10 w%EditBoxWidths% Center, Filepaths
|
|
|
|
|
|
|
|
; Video Filepath
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Text,xp+5 yp+15,Video Filepath
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x%MarginSquared% y+2 w%FilePathEditBoxWidths% h%EditBoxHeight% gUpdateVars vVideoFilepath,%VideoFilepath%
|
|
|
|
Gui, Add, Button, x+%MarginSize% yp+0 h%EditBoxHeight% gSelectVideoFilepath, Select
|
|
|
|
|
|
|
|
; Video Thumbnail Filepath
|
|
|
|
Gui, Font, Bold
|
|
|
|
if(NoOriginalVideoThumbFilepath)
|
|
|
|
Gui, Add, Text, x%MarginSquared% CRed y+15,Video Thumbnail Filepath
|
|
|
|
else,
|
|
|
|
Gui, Add, Text,y+15 x%MarginSquared% ,Video Thumbnail Filepath
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x%MarginSquared% y+2 w%FilePathEditBoxWidths% h%EditBoxHeight% gUpdateVars vVideoThumbFilepath,%VideoThumbFilepath%
|
|
|
|
Gui, Add, Button, x+%MarginSize% yp+0 h%EditBoxHeight% gSelectVideoThumbFilepath, Select
|
|
|
|
; WAV Audio File Filepath
|
|
|
|
Gui, Font, Bold
|
|
|
|
if(WavAudioFilepath = "")
|
|
|
|
Gui, Add, Text,cRed x%MarginSquared% y+15,WAV Filepath
|
|
|
|
else, { ; change text depending on if WAV or FLAC file
|
|
|
|
if(InStr(WavFilepath, ".flac"))
|
|
|
|
Gui, Add, Text,x%MarginSquared% y+15,FLAC Filepath
|
|
|
|
else,
|
|
|
|
Gui, Add, Text,x%MarginSquared% y+15,WAV Filepath
|
|
|
|
}
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x%MarginSquared% y+2 w%FilePathEditBoxWidths% h%EditBoxHeight% gUpdateVars vWavAudioFilepath,%WavAudioFilepath%
|
|
|
|
Gui, Add, Button, x+%MarginSize% yp+0 h%EditBoxHeight% gSelectWAVFilepath, Select
|
|
|
|
|
|
|
|
Gui, Font, Bold
|
|
|
|
if(MP3AudioFilepath = "")
|
|
|
|
Gui, Add, Text,cRed x%MarginSquared% y+15,Podcast MP3 Filepath
|
|
|
|
else,
|
|
|
|
Gui, Add, Text,x%MarginSquared% y+15,Podcast MP3 Filepath
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x%MarginSquared% y+2 w%FilePathEditBoxWidths% h%EditBoxHeight% gUpdateVars vMP3AudioFilepath,%MP3AudioFilepath%
|
|
|
|
Gui, Add, Button, x+%MarginSize% yp+0 h%EditBoxHeight% gSelectMP3Filepath, Select
|
|
|
|
|
|
|
|
|
|
|
|
; Submit Button
|
|
|
|
Gui, Font, s%GuiFontSize%
|
|
|
|
gui, Font, Bold
|
|
|
|
|
|
|
|
Gui, Add, Button, w%EditBoxFourthWidths% x%MarginSize% vUpdateAvailable h%SecondaryButtonHeights% gUpdateScript,FVU Up-to-Date
|
|
|
|
|
|
|
|
Gui, Add, Button, x+%MarginSize% w%EditBoxFourthWidths% h%SecondaryButtonHeights% gOpenProjectFolder, Open Folder
|
|
|
|
|
|
|
|
Gui, Add, Button, x+%MarginSize% w%EditBoxHalfWidths% h%SecondaryButtonHeights% gScheduleUpload, Schedule for Later
|
|
|
|
|
|
|
|
Gui, Add, Button, w%EditBoxFourthWidths% h%SecondaryButtonHeights% x%MarginSize% y+%MarginSize% vChromeUpdateAvailable gUpdateChrome, Chrome Up-to-Date
|
|
|
|
|
|
|
|
Gui, Add, Button, x+%MarginSize% yp+0 w%EditBoxFourthWidths% h%SecondaryButtonHeights% gDisplayResults, View Status
|
|
|
|
Gui, Add, Button, x+%MarginSize% w%EditBoxHalfWidths% h%SecondaryButtonHeights% gStartScript, UPLOAD
|
|
|
|
|
|
|
|
Gui, Add, Button, w%EditBoxFourthWidths% h%SecondaryButtonHeights% x%MarginSize% y+%MarginSize% vPostSchedulerUpdateAvailable gUpdatePostScheduler, Post Scheduler Up-To-Date
|
|
|
|
; Gui, Add, Button, w%EditBoxFourthWidths% h%SecondaryButtonHeights% x%MarginSize% y+%MarginSize% vPostSchedulerUpdateAvailable, Post Scheduler Up-To-Date
|
|
|
|
|
|
|
|
Gui, Add, Button, x+%MarginSize% w%EditBoxFourthWidths% h%SecondaryButtonHeights%
|
|
|
|
Gui, Add, Button, x+%MarginSize% w%EditBoxHalfWidths% h%SecondaryButtonHeights% gReloadScript, Open New Project
|
|
|
|
|
|
|
|
|
|
|
|
if(DevMode){
|
|
|
|
Gui, Add, Button, x%MarginSize% w%EditBoxFourthWidths% h30 y+5 h%SecondaryButtonHeights% gOpenErrorLog, Open ErrorLog
|
|
|
|
Gui, Add, Button, x+%MarginSize% w%EditBoxFourthWidths% h30 h%SecondaryButtonHeights% gClearVideoLinks, Clear VideoLinks
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; -------------------------------Page 2 Side of Main GUI Window-------------------------------
|
|
|
|
LineSplitXPosition := PageTwoXStartPos - ( MarginSize * 2)
|
|
|
|
gui, add, text, x%LineSplitXPosition% y20 h600 0x11 ; 0x11 is a "line"
|
|
|
|
|
|
|
|
; Miscellaneous Settings
|
|
|
|
; DevMode Buttons
|
|
|
|
gui, Font, s4
|
|
|
|
Gui, Font, Normal
|
|
|
|
DevModToggleButton := PageTwoXStartPos + 160
|
|
|
|
Gui, Add, Button, x%DevModToggleButton% y5 w50 h10 gToggleDevMode,DevMode
|
|
|
|
Gui, Add, Button, x+%MarginSize% y5 w50 h10 gToggleTestingMode, Testing Mode
|
|
|
|
Gui, Add, Button, x+%MarginSize% y5 w50 h10 gOpenGiteaPage, Gitea
|
|
|
|
|
|
|
|
Gui, Font, s%GuiFontSize%
|
|
|
|
Gui, Font, Normal
|
|
|
|
|
|
|
|
; Settings Section
|
|
|
|
Gui, Add, GroupBox,r6 y+0 x%PageTwoXStartPos% w%PageTwoGroupBoxWidth%,Settings
|
|
|
|
Gui, Add, Checkbox, xp+10 yp+20 vAutoUpdateCheck gUpdateVars Checked%AutoUpdateCheck%, Auto Update Check
|
|
|
|
Gui, Add, Checkbox, vShowTooltipProgress Checked%ShowTooltipProgress% gUpdateVars,Show Tooltip of Actions
|
|
|
|
Gui, Add, Checkbox, vKillLBRYAfterUpload Checked%KillLBRYAfterUpload%, Kill LBRY After Uploading
|
|
|
|
Gui, Add, Checkbox, vErrorLogToDiscord gUpdateVars Checked%ErrorLogToDiscord%, Error Log to Discord
|
|
|
|
Gui, Add, Checkbox, vDiscordPingOnCompletion gUpdateVars Checked%DiscordPingOnCompletion%, Discord Ping Upon Completion
|
|
|
|
Gui, Add, Checkbox, vConfirmBeforeSubmit checked%ConfirmBeforeSubmit%, Confirm Before Submit
|
|
|
|
|
|
|
|
|
|
|
|
GroupBoxCheckboxPos := PageTwoXStartPos + MarginSize
|
|
|
|
|
|
|
|
; -------------------------------PLATFORMS-------------------------------
|
|
|
|
Gui, Font, s%GuiFontSize%
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, GroupBox,r6 y+%MarginSizeTripled% x%PageTwoXStartPos% w%PageTwoGroupBoxWidth%, Platforms
|
|
|
|
|
|
|
|
Gui, Font, s8
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Button, xp+80 yp+0 gUncheckAllPlatforms, Uncheck All
|
|
|
|
|
|
|
|
Gui, Font, s%GuiFontSize%
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Checkbox, x%GroupBoxCheckboxPos% yp+30 vBitChute Checked%BitChute% gUpdateVars, BitChute
|
|
|
|
|
|
|
|
if(LocalsURL = "LocalsUploadStartedNeedToGrabURL"){
|
|
|
|
; msgbox, checking grab url
|
|
|
|
Gui, Add, Checkbox, x+%MarginSizeTripled% yp+0 vLocalsGrabURL Checked%Locals% gUpdateVars, Locals (Grab URL)
|
|
|
|
LocalsGrabURL := 1
|
|
|
|
Locals := 0
|
|
|
|
}
|
|
|
|
else, {
|
|
|
|
; msgbox, checking locals
|
|
|
|
Gui, Add, Checkbox, x+%MarginSizeTripled% yp+0 vLocals Checked%Locals% gUpdateVars, Locals
|
|
|
|
LocalsGrabURL := 0
|
|
|
|
Locals := 1
|
|
|
|
}
|
|
|
|
|
|
|
|
Gui, Add, Checkbox, x%GroupBoxCheckboxPos% y+%MarginSize% vOdyseeVideo Checked%OdyseeVideo% gUpdateVars, Odysee Video
|
|
|
|
Gui, Add, Checkbox, x%GroupBoxCheckboxPos% y+%MarginSize% vOdyseeAudio Checked%OdyseeAudio% gUpdateVars, Odysee Audio
|
|
|
|
|
|
|
|
Gui, Add, Checkbox, x%GroupBoxCheckboxPos% y+%MarginSize% vRumble Checked%Rumble% gUpdateVars, Rumble
|
|
|
|
|
|
|
|
; Brighteon Does not accept videos lower than 300kbps or that don't have the appropriate aspect ratio
|
|
|
|
if(VideoTotalBitrate < 300000 OR !VideoHasBrighteonCompatibleAspectRatio){
|
|
|
|
if(!VideoHasBrighteonCompatibleAspectRatio)
|
|
|
|
Gui, Add, Checkbox, cRed vBrighteon y+%MarginSize% Checked0 gUpdateVars, Brighteon (Aspect Ratio is %VideoAspectRatio%)
|
|
|
|
else,
|
|
|
|
Gui, Add, Checkbox, cRed vBrighteon y+%MarginSize% Checked0 gUpdateVars, Brighteon (Bitrate Below 300kbps)
|
|
|
|
}
|
|
|
|
else,{
|
|
|
|
Gui, Add, Checkbox, vBrighteon y+%MarginSize% Checked%Brighteon% gUpdateVars, Brighteon
|
|
|
|
}
|
|
|
|
|
|
|
|
Gui, Add, Checkbox, vDailyMotion y+%MarginSize% Checked%DailyMotion% gUpdateVars, DailyMotion
|
|
|
|
|
|
|
|
Gui, Font, s%GuiFontSize%
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, GroupBox, r6.5 y+%MarginSizeTripled% vImageThumbnail x%PageTwoXStartPos% w%PageTwoGroupBoxWidth%,Thumbnail
|
|
|
|
gui, Font, Normal
|
|
|
|
Gui, Add, Picture, xp+10 yp+20 w%ThumbnailPreviewWidth% h-1, %VideoThumbFilepath%
|
|
|
|
|
|
|
|
|
|
|
|
gui, Font, Normal
|
|
|
|
gui, font, s7
|
|
|
|
Gui, Add, StatusBar,Center, Total Videos Uploaded: %TotalVideosUploaded% | Total Clicks Saved: %MouseClicksSaved%
|
|
|
|
|
|
|
|
|
|
|
|
; Show GUI to the user
|
|
|
|
Gui, +Resize +MaximizeBox
|
|
|
|
|
|
|
|
if(XPosition and YPosition)
|
|
|
|
Gui, Show, x%XPosition% y%YPosition%, %FullScriptName% - Upload Settings - %BodyTextFilePath%
|
|
|
|
else,
|
|
|
|
Gui, Show,, %FullScriptName% - Upload Settings - %BodyTextFilePath%
|
|
|
|
|
|
|
|
ControlFocus, Edit4, %FullScriptName%
|
|
|
|
ToolTip
|
|
|
|
|
|
|
|
; calculate run time and convert to seconds
|
|
|
|
URunTime1 := round(((A_TickCount - UStartTime) / 1000), 2)
|
|
|
|
|
|
|
|
|
|
|
|
; - Check for Updates
|
|
|
|
;------------------------------------------------
|
|
|
|
if(AutoUpdateCheck AND !UpdateAvailable){
|
|
|
|
SetTimer, CheckForUpdates, -1000
|
|
|
|
}
|
|
|
|
|
|
|
|
; calculate run time and convert to seconds
|
|
|
|
URunTime2 := round(((A_TickCount - UStartTime) / 1000), 2)
|
|
|
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Scheduler GUI
|
|
|
|
; ------------------------------------------------
|
|
|
|
ScheduleUpload:
|
|
|
|
gui, Submit, NoHide ; submit the main GUI so all the variables get updated
|
|
|
|
|
|
|
|
; Create GUI for Scheduler
|
|
|
|
Gui, ScheduleGUI:New
|
|
|
|
Gui, Font, s15
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Text,, Date:
|
|
|
|
Gui, Add, DateTime,w%EditBoxHalfWidths% vScheduledDate , MM/dd/yyyy
|
|
|
|
Gui, Add, Text,, Time:
|
|
|
|
Gui, Add, DateTime, w%EditBoxHalfWidths% vScheduledTime Choose200505311900, Time
|
|
|
|
Gui, Add, Button,w%EditBoxHalfWidths% gSubmitScheduler, Schedule
|
|
|
|
Gui, Show,, Scheduler
|
|
|
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Results GUI Screen
|
|
|
|
; ------------------------------------------------
|
|
|
|
SetAndShowResultsGUI:
|
|
|
|
; Set the GUI Variables, needed if called from Scheduler
|
|
|
|
Gosub, SetGUIVariables
|
|
|
|
|
|
|
|
Gui, Font, s%GuiFontSize%
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Button, x%MarginSize% y+%MarginSize% h%ButtonHeights% w%CopyButtonWidths% gCopyToClipboard,Transcript URL
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x+%MarginSize% yp+0 h%ButtonHeights% w%ResultEditBoxWidth% gUpdateVars vPodcastTranscriptURL, %PodcastTranscriptURL%
|
|
|
|
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Button, x%MarginSize% y+%MarginSize% h%ButtonHeights% w%CopyButtonWidths% gCopyToClipboard, Bitchute
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x+%MarginSize% yp+0 h%ButtonHeights% vBitChuteURL w%ResultEditBoxWidth% gUpdateVars , %BitChuteURL%
|
|
|
|
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Button, x%MarginSize% y+%MarginSize% h%ButtonHeights% w%CopyButtonWidths% gCopyToClipboard, Brighteon
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x+%MarginSize% yp+0 h%ButtonHeights% vBrighteonURL w%ResultEditBoxWidth% gUpdateVars , %BrighteonURL%
|
|
|
|
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Button, x%MarginSize% y+10 h%ButtonHeights% w%CopyButtonWidths% gCopyToClipboard, DailyMotion
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x+%MarginSize% yp+0 h%ButtonHeights% vDailyMotionURL w%ResultEditBoxWidth% gUpdateVars , %DailyMotionURL%
|
|
|
|
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Button, x%MarginSize% y+10 h%ButtonHeights% w%CopyButtonWidths% gCopyToClipboard, Odysee Video
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x+%MarginSize% yp+0 h%ButtonHeights% vOdyseeVideoURL w%ResultEditBoxWidth% gUpdateVars, %OdyseeVideoURL%
|
|
|
|
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Button, x%MarginSize% y+10 h%ButtonHeights% w%CopyButtonWidths% gCopyToClipboard, Odysee Audio
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x+%MarginSize% yp+0 h%ButtonHeights% vOdyseeAudioURL w%ResultEditBoxWidth% gUpdateVars , %OdyseeAudioURL%
|
|
|
|
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Button, x%MarginSize% y+10 h%ButtonHeights% w%CopyButtonWidths% gCopyToClipboard, Rumble
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x+%MarginSize% yp+0 h%ButtonHeights% vRumbleURL w%ResultEditBoxWidth% gUpdateVars , %RumbleURL%
|
|
|
|
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Button, x%MarginSize% y+10 h%ButtonHeights% w%CopyButtonWidths% gCopyToClipboard, Locals
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x+%MarginSize% yp+0 h%ButtonHeights% vLocalsURL w%ResultEditBoxWidth% gUpdateVars, %LocalsURL%
|
|
|
|
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Button, x%MarginSize% y+10 h%ButtonHeights% w%CopyButtonWidths% gCopyToClipboard, Unauthorized
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x+%MarginSize% yp+0 h%ButtonHeights% vUnauthorizedTVURL w%ResultEditBoxWidth% gUpdateVars, %UnauthorizedTVURL%
|
|
|
|
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Button, x%MarginSize% y+10 h%ButtonHeights% w%CopyButtonWidths% gCopyToClipboard, Video Tags
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x+%MarginSize% yp+0 h%ButtonHeights% vVideoTags w%ResultEditBoxWidth% gUpdateVars , %VideoTags%
|
|
|
|
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Button, x%MarginSize% y+10 h%ButtonHeights% w%CopyButtonWidths% gCopyToClipboard, Podcast Tags
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x+%MarginSize% yp+0 h%ButtonHeights% vPodcasttags w%ResultEditBoxWidth% gUpdateVars , %Podcasttags%
|
|
|
|
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Button, x%MarginSize% y+10 h%ButtonHeights% w%CopyButtonWidths% gCopyToClipboard, Description
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x+%MarginSize% yp+0 h%ButtonHeights% vVideoDescription w%ResultEditBoxWidth% gUpdateVars , %VideoDescription%
|
|
|
|
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Button, x%MarginSize% y+10 h%ButtonHeights% w%CopyButtonWidths% gCopyToClipboard, Summary
|
|
|
|
Gui, Font, Normal
|
|
|
|
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x+%MarginSize% yp+0 h%ButtonHeights% vVideoSummary w%ResultEditBoxWidth% gUpdateVars , %VideoSummary%
|
|
|
|
|
|
|
|
Gui, Font, s%GuiFontSize%
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Button, x%MarginSize% w%ResultsEditAndCopyButtonWidth% h%SecondaryButtonHeights% gUpdateINI, Save Modified Links to Files
|
|
|
|
|
|
|
|
|
|
|
|
; Error Log Column
|
|
|
|
; ------------------------------------------------
|
|
|
|
Gui, Font, s%GuiFontSize%
|
|
|
|
Gui, Add, Button, x+%MarginSize% y%MarginSize% w%ErrorLogEditBoxWidth% h%ButtonHeights% y%MarginSize% gOpenErrorLog, Error Log (Click to Open Detailed Log)
|
|
|
|
Gui, Add, Edit,x%ErrorLogEditBoxXPos% h%ErrorLogEditBoxHeight% w%ErrorLogEditBoxWidth% y+10, %ErrorLogVar%
|
|
|
|
|
|
|
|
gui, font, Normal
|
|
|
|
gui, font, s7
|
|
|
|
Gui, Add, StatusBar,, Total Videos Uploaded: %TotalVideosUploaded% | Total Clicks Saved: %MouseClicksSaved%
|
|
|
|
Gui, +Resize +MaximizeBox
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gui, add, text, x%MarginSize% y+%MarginSize% w%ResultsGUIWidth% 0x10 ;Horizontal Line > Etched Gray
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Results GUI Action Buttons
|
|
|
|
; ------------------------------------------------
|
|
|
|
Gui, Font, s%GuiFontSize%
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Button, x%MarginSize% yp+%MarginSize% w%ResultsScreenOneThirdsWidth% h%SecondaryButtonHeights% gOpenLBRYBlobFilesFolder, Open LBRY Blob Folder
|
|
|
|
Gui, Add, Button, x+%MarginSize% w%ResultsScreenOneThirdsWidth% h%SecondaryButtonHeights% gUploadPodcast vUploadPodcast, Upload Podcast
|
|
|
|
Gui, Add, Button, x+%MarginSize% w%ResultsScreenOneThirdsWidth% h%SecondaryButtonHeights% gRetryUpload, Try Failed Again
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Add, Button, x%MarginSize% y+%MarginSize% w%ResultsScreenOneThirdsWidth% h%SecondaryButtonHeights% gPostToDiscordAndTelegram vPostToDiscordTelegramButton, Post to Discord/Telegram
|
|
|
|
; Gui, Add, Button, x+%MarginSize% w%ResultsScreenOneThirdsWidth% h%SecondaryButtonHeights% gPostToTelegram vPostToTelegramButton, Post to Telegram
|
|
|
|
Gui, Add, Button, x+%MarginSize% w%ResultsScreenOneThirdsWidth% h%SecondaryButtonHeights% gStartSocialMediaPoster, Start Social Media Poster
|
|
|
|
|
|
|
|
; Row 3
|
|
|
|
; Gui, Add, Button, x%ResultEditBoxXPos% y+%MarginSize% w%ResultsScreenOneThirdsWidth% h%ButtonHeights%,
|
|
|
|
|
|
|
|
|
|
|
|
; Gui, Add, Button, x+%MarginSize% w%ResultEditBoxHalfWidths% w%ButtonWidths% h%ButtonHeights% gCancelPost , Close
|
|
|
|
; Gui, Add, Button, x+%MarginSize% w%ResultEditBoxHalfWidths% gKillScript %ButtonWidths% , Close
|
|
|
|
; gui, Add, Text, y+10
|
|
|
|
|
|
|
|
OriginalVideoDescription := VideoDescription
|
|
|
|
OriginalPodcastTags := PodcastTags
|
|
|
|
|
|
|
|
|
|
|
|
if(XPosition and YPosition)
|
|
|
|
Gui, Show,x%XPosition% y%YPosition%,%FullScriptName% - Uploads Status
|
|
|
|
else,
|
|
|
|
Gui, Show,,%FullScriptName% - Uploads Results
|
|
|
|
Return
|