You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
157 lines
4.2 KiB
Plaintext
157 lines
4.2 KiB
Plaintext
5 months ago
|
; ENVIRONMENT
|
||
|
;------------------------------------------------
|
||
|
#Requires AutoHotkey v1.0
|
||
|
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
||
|
;#Warn ; Enable warnings to assist with detecting common errors.
|
||
|
;DetectHiddenWindows, On
|
||
|
#SingleInstance, Force
|
||
|
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
|
||
|
|
||
|
; Notes/Extra Info/#Includes
|
||
|
;------------------------------------------------
|
||
|
|
||
|
; Included Files and Libraries
|
||
|
; ------------------------------------------------
|
||
|
; These have to be included at the top for the Global variables to get registered early
|
||
|
#Include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\Locals-Functions.ahk
|
||
|
#Include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\General-Functions.ahk
|
||
|
#Include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\Selenium-Functions.ahk
|
||
|
#Include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\Chrome-Functions.ahk
|
||
|
#Include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\Gitea-Functions.ahk
|
||
|
#Include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\API-Functions.ahk
|
||
|
#Include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\JSON.ahk
|
||
|
#Include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\RunCMD.ahk
|
||
|
#include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\StdOutToVar.ahk
|
||
|
#include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\Zip.ahk
|
||
|
#include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\URLDownloadToVar.ahk
|
||
|
#Include %A_ScriptDir%\Modules\Miscellaneous-Functions.ahk
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
; VARIABLES
|
||
|
;------------------------------------------------
|
||
|
|
||
|
;---Global Variables---
|
||
|
;------------------------------------------------
|
||
|
global ScriptNameav
|
||
|
global ScriptVersion
|
||
|
global FullScriptName
|
||
|
global LBRYResolveAPICommand
|
||
|
global LBRYPermanentURL
|
||
|
global VideoTitle
|
||
|
global VideoFilepath
|
||
|
global VideoThumbFilepath
|
||
|
global VideoTags
|
||
|
global VideoDescription
|
||
|
global SocialMediaDescription
|
||
|
global DiscordErrorLoggingWebhookBotURL
|
||
|
global DiscordVideosWebhookURL
|
||
|
global VideoFolderDir
|
||
|
global LogErrorsToMsgbox
|
||
|
; global LogErrorsToTextFile
|
||
|
global CurrentSite
|
||
|
global Driver
|
||
|
global DriverStatus
|
||
|
global ChromeProfile
|
||
|
global ShowTooltipProgressCheckStatus
|
||
|
global ShowTooltipProgress
|
||
|
ShowTooltipProgress := 1
|
||
|
global ErrorLogSummary
|
||
|
global DiscordParlerWebhookURL
|
||
|
global ErrorLoggingFilePath
|
||
|
; global TotalTabLoops
|
||
|
|
||
|
global ErrorLogVar
|
||
|
ErrorLogVar :=
|
||
|
|
||
|
global DevMode
|
||
|
|
||
|
; Check if Lib folder exists and create it if not
|
||
|
LibFolder := A_ScriptDir . "\Lib"
|
||
|
ErrorLoggingFolder := A_ScriptDir . "\Lib\ErrorLogging"
|
||
|
FileCreateDir, %ErrorLoggingFolder%
|
||
|
|
||
|
; Set filepaths for different files and folders
|
||
|
global SettingsIniFilepath
|
||
|
SettingsIniFilepath := A_ScriptDir . "\Settings.ini"
|
||
|
|
||
|
global ScriptSettingsSection
|
||
|
ScriptSettingsSection := "Livestream-Scheduler"
|
||
|
|
||
|
|
||
|
FileInstall, Version.ini, %A_ScriptDir%\Lib\Version.ini, 1
|
||
|
IniRead, ScriptVersion, %A_ScriptDir%\Lib\Version.ini,%ScriptSettingsSection%, Version, 0.0
|
||
|
IniRead, ScriptName, %A_ScriptDir%\Lib\Version.ini,%ScriptSettingsSection%, Name, %ScriptSettingsSection%
|
||
|
|
||
|
FullScriptName := ScriptName . " - " . ScriptVersion
|
||
|
|
||
|
|
||
|
; GUI Variables
|
||
|
; ------------------------------------------------
|
||
|
GUIEditBoxWidths := 600
|
||
|
|
||
|
|
||
|
; MAIN SCRIPT
|
||
|
;------------------------------------------------
|
||
|
Gui, Font, S15
|
||
|
Gui, Add, Text,, Title
|
||
|
Gui, Add, Edit,w%GUIEditBoxWidths% vLivestreamTitle, We are going to have a livestream!
|
||
|
|
||
|
Gui, Add, Text,, Description
|
||
|
Gui, Add, Edit,w%GUIEditBoxWidths% h200 vLivestreamDescription, This livestream is happening soon!
|
||
|
|
||
|
|
||
|
Gui, Add, Text,, Date and Time of Livestream
|
||
|
Gui, Add, DateTime, vLivestreamDate, MM/dd/yyyy
|
||
|
Gui, Add, DateTime, vLivestreamTime, HH:mm
|
||
|
Gui, Add, Text,, Websites
|
||
|
|
||
|
Gui, Add, Checkbox,, Dlive
|
||
|
Gui, Add, Checkbox,, Locals
|
||
|
Gui, Add, Checkbox,, Odysee
|
||
|
Gui, Add, Button,gSchedulePost, Schedule
|
||
|
|
||
|
Gui, Show
|
||
|
Return
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
; Functions
|
||
|
;------------------------------------------------
|
||
|
SchedulePost:
|
||
|
Gui, submit, NoHide
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
; #Include %A_ScriptDir%\Modules\Rumble-Schedule.ahk
|
||
|
#Include %A_ScriptDir%\Modules\Locals-Schedule.ahk
|
||
|
|
||
|
|
||
|
msgbox, done!
|
||
|
Return
|
||
|
|
||
|
|
||
|
|
||
|
; Misc
|
||
|
;------------------------------------------------
|
||
|
|
||
|
; Escape::ExitApp
|