|
|
@ -7,10 +7,11 @@ 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
|
|
|
|
if(InStr(A_ScriptName, ".ahk")){
|
|
|
|
if(InStr(A_ScriptName, ".ahk")){
|
|
|
|
Menu, Tray, Icon, %A_ScriptDir%\assets\FreedomainSMP.ico
|
|
|
|
Menu, Tray, Icon, %A_ScriptDir%\assets\Icon.ico
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ErrorLoggingDirectory = %1%
|
|
|
|
ErrorLoggingDirectory = %1%
|
|
|
|
|
|
|
|
PassedInArgument = %1%
|
|
|
|
|
|
|
|
|
|
|
|
; Add menus to the toolbar icon
|
|
|
|
; Add menus to the toolbar icon
|
|
|
|
Menu, tray, NoStandard ; remove standard tray
|
|
|
|
Menu, tray, NoStandard ; remove standard tray
|
|
|
@ -45,16 +46,14 @@ global UpdateVersionNumber
|
|
|
|
|
|
|
|
|
|
|
|
;---ToDo---
|
|
|
|
;---ToDo---
|
|
|
|
;------------------------------------------------
|
|
|
|
;------------------------------------------------
|
|
|
|
; @todo: fix post scheduling - countdown not working
|
|
|
|
|
|
|
|
; @todo: Errorlog not getting appended to on > 1 run (ErrorLoggingFilePath) variable is missing somehwere
|
|
|
|
; @todo: Errorlog not getting appended to on > 1 run (ErrorLoggingFilePath) variable is missing somehwere
|
|
|
|
; @todo: Add tags support on all sites that support it - ask stef is useful
|
|
|
|
; @todo: All post submits: mark with "Post Submit Successful" OR "Post Submit Failed" for easier reading of errorlogs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Misc info
|
|
|
|
; Misc info
|
|
|
|
;------------------------------------------------
|
|
|
|
;------------------------------------------------
|
|
|
|
; Parler has a 1k char limit
|
|
|
|
; Parler has a 1k char limit
|
|
|
|
; All post submits: mark with "Post Submit Successful" OR "Post Submit Failed" for easier reading of errorlogs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;---Global Variables---
|
|
|
|
;---Global Variables---
|
|
|
@ -96,14 +95,11 @@ global Locals
|
|
|
|
global LinkedIn
|
|
|
|
global LinkedIn
|
|
|
|
global MeWe
|
|
|
|
global MeWe
|
|
|
|
global Twetch
|
|
|
|
global Twetch
|
|
|
|
; global ThinkSpot
|
|
|
|
|
|
|
|
; global Flote
|
|
|
|
|
|
|
|
global PocketNet
|
|
|
|
global PocketNet
|
|
|
|
; global parler
|
|
|
|
|
|
|
|
global Gettr
|
|
|
|
global Gettr
|
|
|
|
global steemit
|
|
|
|
global steemit
|
|
|
|
; global Pintrest
|
|
|
|
global Tumblr
|
|
|
|
; global Tumblr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Check if Lib folder exists and create it if not
|
|
|
|
; Check if Lib folder exists and create it if not
|
|
|
|
LibFolder := A_ScriptDir . "\Lib"
|
|
|
|
LibFolder := A_ScriptDir . "\Lib"
|
|
|
@ -124,6 +120,7 @@ ScriptSettingsSection := "SocialMediaPoster"
|
|
|
|
FileInstall, Version.ini, %A_ScriptDir%\Lib\Version.ini, 1
|
|
|
|
FileInstall, Version.ini, %A_ScriptDir%\Lib\Version.ini, 1
|
|
|
|
IniRead, ScriptVersion, %A_ScriptDir%\Lib\Version.ini,Social-Media-Poster, Version, 0.0
|
|
|
|
IniRead, ScriptVersion, %A_ScriptDir%\Lib\Version.ini,Social-Media-Poster, Version, 0.0
|
|
|
|
ScriptName = Freedomain Social Media Poster
|
|
|
|
ScriptName = Freedomain Social Media Poster
|
|
|
|
|
|
|
|
ScriptAbbreviatedName := "FSMP"
|
|
|
|
FullScriptName := ScriptName . " " . ScriptVersion
|
|
|
|
FullScriptName := ScriptName . " " . ScriptVersion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -137,6 +134,8 @@ IniRead, TelegramBotChatID, %SettingsIniFilepath%, SocialMediaPoster, TelegramBo
|
|
|
|
IniRead, DiscordErrorLoggingWebhookBotURL, %SettingsIniFilepath%, SocialMediaPoster, DiscordErrorLoggingWebhookBotURL, %A_Space%
|
|
|
|
IniRead, DiscordErrorLoggingWebhookBotURL, %SettingsIniFilepath%, SocialMediaPoster, DiscordErrorLoggingWebhookBotURL, %A_Space%
|
|
|
|
IniRead, DiscordParlerWebhookURL, %SettingsIniFilepath%, SocialMediaPoster, DiscordParlerWebhookURL, %A_Space%
|
|
|
|
IniRead, DiscordParlerWebhookURL, %SettingsIniFilepath%, SocialMediaPoster, DiscordParlerWebhookURL, %A_Space%
|
|
|
|
IniRead, ChromeFilepath, %SettingsIniFilepath%, SocialMediaPoster, ChromeFilepath, %A_Space%
|
|
|
|
IniRead, ChromeFilepath, %SettingsIniFilepath%, SocialMediaPoster, ChromeFilepath, %A_Space%
|
|
|
|
|
|
|
|
IniRead, ConfirmBeforeSubmit, %SettingsIniFilepath%, %ScriptSettingsSection%, ConfirmBeforeSubmit, 1
|
|
|
|
|
|
|
|
; IniRead, SaveGUIPosition, %SettingsIniFilepath%, %ScriptSettingsSection%, SaveGUIPosition, 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -260,8 +259,11 @@ if(StrLen(ErrorLoggingDirectory) > 5 and !InStr(ErrorLoggingDirectory, ".exe")){
|
|
|
|
IniRead, RumbleURL, %ErrorLoggingDirectory%,URLs, RumbleURL, %A_Space%
|
|
|
|
IniRead, RumbleURL, %ErrorLoggingDirectory%,URLs, RumbleURL, %A_Space%
|
|
|
|
IniRead, BrighteonURL, %ErrorLoggingDirectory%,URLs, BrighteonURL, %A_Space%
|
|
|
|
IniRead, BrighteonURL, %ErrorLoggingDirectory%,URLs, BrighteonURL, %A_Space%
|
|
|
|
IniRead, BitChuteURL, %ErrorLoggingDirectory%,URLs, BitChuteURL, %A_Space%
|
|
|
|
IniRead, BitChuteURL, %ErrorLoggingDirectory%,URLs, BitChuteURL, %A_Space%
|
|
|
|
|
|
|
|
IniRead, LocalsURL, %ErrorLoggingDirectory%,URLs, LocalsURL, %A_Space%
|
|
|
|
|
|
|
|
|
|
|
|
IniRead, PodcastNumber, %ErrorLoggingDirectory%,Misc, PodcastNumber, %A_Space%
|
|
|
|
IniRead, PodcastNumber, %ErrorLoggingDirectory%,Misc, PodcastNumber, %A_Space%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(BitChuteURL = ""){
|
|
|
|
if(BitChuteURL = ""){
|
|
|
|
if(RumbleURL != "")
|
|
|
|
if(RumbleURL != "")
|
|
|
|
VideoURL := RumbleURL
|
|
|
|
VideoURL := RumbleURL
|
|
|
@ -278,12 +280,12 @@ if(StrLen(ErrorLoggingDirectory) > 5 and !InStr(ErrorLoggingDirectory, ".exe")){
|
|
|
|
; Append bitchute url to bottom of description
|
|
|
|
; Append bitchute url to bottom of description
|
|
|
|
PostBody := PostBody . "`n`n" . PodcastURL . VideoURL
|
|
|
|
PostBody := PostBody . "`n`n" . PodcastURL . VideoURL
|
|
|
|
|
|
|
|
|
|
|
|
; Msgbox % "PostTitle: " PostTitle
|
|
|
|
|
|
|
|
; Msgbox % "PostBody: " PostBody
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Discord := 0
|
|
|
|
Discord := 0
|
|
|
|
Telegram := 0
|
|
|
|
Telegram := 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; if videos was uploaded to locals, don't SMP announce
|
|
|
|
|
|
|
|
if(LocalsURL)
|
|
|
|
|
|
|
|
Locals := 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else, { ; otherwise passed in from a previous run.
|
|
|
|
else, { ; otherwise passed in from a previous run.
|
|
|
|
|
|
|
|
|
|
|
@ -296,7 +298,6 @@ if(StrLen(ErrorLoggingDirectory) > 5 and !InStr(ErrorLoggingDirectory, ".exe")){
|
|
|
|
|
|
|
|
|
|
|
|
ReadWebsiteStatuses() ; Read .ini file of post statuses for each site
|
|
|
|
ReadWebsiteStatuses() ; Read .ini file of post statuses for each site
|
|
|
|
}
|
|
|
|
}
|
|
|
|
; Tooltip
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -312,12 +313,7 @@ if(StrLen(ErrorLoggingDirectory) > 5 and !InStr(ErrorLoggingDirectory, ".exe")){
|
|
|
|
(Locals != "")?(LocalsCheckStatus := 0) : (LocalsCheckStatus := 1)
|
|
|
|
(Locals != "")?(LocalsCheckStatus := 0) : (LocalsCheckStatus := 1)
|
|
|
|
(LinkedIN != "")?(LinkedINCheckStatus := 0) : (LinkedINCheckStatus := 1)
|
|
|
|
(LinkedIN != "")?(LinkedINCheckStatus := 0) : (LinkedINCheckStatus := 1)
|
|
|
|
(Twetch != "")?(TwetchCheckStatus := 0) : (TwetchCheckStatus := 0)
|
|
|
|
(Twetch != "")?(TwetchCheckStatus := 0) : (TwetchCheckStatus := 0)
|
|
|
|
; (ThinkSpot != "")?(ThinkSpotCheckStatus := 0) : (ThinkSpotCheckStatus := 0)
|
|
|
|
|
|
|
|
; (Flote != "")?(FloteCheckStatus := 0) : (FloteCheckStatus := 0)
|
|
|
|
|
|
|
|
; (Pintrest != "")?(PintrestCheckStatus := 0) : (PintrestCheckStatus := 1)
|
|
|
|
|
|
|
|
; (Parler != "")?(ParlerCheckStatus := 0) : (ParlerCheckStatus := 0)
|
|
|
|
|
|
|
|
(PocketNet != "")?(PocketNetCheckStatus := 0) : (PocketNetCheckStatus := 1)
|
|
|
|
(PocketNet != "")?(PocketNetCheckStatus := 0) : (PocketNetCheckStatus := 1)
|
|
|
|
; (Tumblr != "")?(TumblrCheckStatus := 0) : (TumblrCheckStatus := 1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -333,46 +329,53 @@ if(TestingMode){ ; Easy testing for Yuriy
|
|
|
|
LinkedINCheckStatus := 0
|
|
|
|
LinkedINCheckStatus := 0
|
|
|
|
MeWeCheckStatus := 0
|
|
|
|
MeWeCheckStatus := 0
|
|
|
|
TwetchCheckStatus := 0
|
|
|
|
TwetchCheckStatus := 0
|
|
|
|
; ThinkSpotCheckStatus := 0
|
|
|
|
|
|
|
|
PocketNetCheckStatus := 0
|
|
|
|
PocketNetCheckStatus := 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;---GUI Variables---
|
|
|
|
;---GUI Variables---
|
|
|
|
;------------------------------------------------
|
|
|
|
;------------------------------------------------
|
|
|
|
|
|
|
|
IniRead, XPosition, %SettingsIniFilepath%, %ScriptSettingsSection%, XPosition, 0
|
|
|
|
|
|
|
|
IniRead, YPosition, %SettingsIniFilepath%, %ScriptSettingsSection%, YPosition, 0
|
|
|
|
|
|
|
|
|
|
|
|
TooltipXPosition := Round((A_ScreenWidth / 2) - (A_ScreenWidth / 10)) ; Center Tooltip on the screen and a bit to the left
|
|
|
|
TooltipXPosition := Round((A_ScreenWidth / 2) - (A_ScreenWidth / 10)) ; Center Tooltip on the screen and a bit to the left
|
|
|
|
|
|
|
|
|
|
|
|
GuiWidth := 1366
|
|
|
|
GuiWidth := 1366
|
|
|
|
GuiFontSize := 10
|
|
|
|
GuiFontSize := 10
|
|
|
|
TemplatesGroupBoxWidth := 700
|
|
|
|
TemplatesGroupBoxWidth := 700
|
|
|
|
MarginSpace = 10
|
|
|
|
MarginSize = 10
|
|
|
|
MarginSpaceDoubled := MarginSpace * 2
|
|
|
|
MarginSizeDoubled := MarginSize * 2
|
|
|
|
EditBoxWidth := 700
|
|
|
|
EditBoxWidth := 700
|
|
|
|
EditBoxHalfWidths := EditBoxWidth / 2 - (MarginSpace * 1.7)
|
|
|
|
EditBoxHalfWidths := EditBoxWidth / 2 - (MarginSize * 1.7)
|
|
|
|
EditBoxThirdsWidth := EditBoxWidth / 3 - (MarginSpace * 1.5)
|
|
|
|
EditBoxThirdsWidth := EditBoxWidth / 3 - (MarginSize * 1.5)
|
|
|
|
GroupBox_PlatformsWidth := 180
|
|
|
|
GroupBox_PlatformsWidth := 180
|
|
|
|
ImageSelectionButtonWidth := 100
|
|
|
|
ImageSelectionButtonWidth := 100
|
|
|
|
ImageFilepathEditBoxWidth := EditBoxWidth - ImageSelectionButtonWidth - MarginSpace
|
|
|
|
ImageFilepathEditBoxWidth := EditBoxWidth - ImageSelectionButtonWidth - MarginSize
|
|
|
|
SelectFileButtonWidth := 50
|
|
|
|
SelectFileButtonWidth := 50
|
|
|
|
SelectFileButtonXPos := EditBoxWidth - SelectFileButtonWidth - MarginSpace
|
|
|
|
SelectFileButtonXPos := EditBoxWidth - SelectFileButtonWidth - MarginSize
|
|
|
|
CharCountXPos := EditBoxWidth - 20
|
|
|
|
CharCountXPos := EditBoxWidth - 20
|
|
|
|
; FilePathEditBoxWidth := EditBoxWidth - SelectFileButtonWidth - MarginSpace
|
|
|
|
; FilePathEditBoxWidth := EditBoxWidth - SelectFileButtonWidth - MarginSize
|
|
|
|
|
|
|
|
|
|
|
|
PlatformsGroupBoxXLocation := EditBoxWidth + (MarginSpace * 3)
|
|
|
|
PlatformsGroupBoxXLocation := EditBoxWidth + (MarginSize * 3)
|
|
|
|
; SettingsGroupBoxXLocation := PlatformsGroupBoxXLocation + ActionButtonWidths
|
|
|
|
; SettingsGroupBoxXLocation := PlatformsGroupBoxXLocation + ActionButtonWidths
|
|
|
|
SettingsGroupBoxXLocation := PlatformsGroupBoxXLocation + GroupBox_PlatformsWidth
|
|
|
|
SettingsGroupBoxXLocation := PlatformsGroupBoxXLocation + GroupBox_PlatformsWidth
|
|
|
|
ActionButtonWidths := 355
|
|
|
|
ActionButtonWidths := 355
|
|
|
|
|
|
|
|
|
|
|
|
ActionButtonHalfWidths := (ActionButtonWidths / 2) - (MarginSpace / 2)
|
|
|
|
ActionButtonHalfWidths := (ActionButtonWidths / 2) - (MarginSize / 2)
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Margin, %MarginSpace%, %MarginSpace%
|
|
|
|
Gui, Margin, %MarginSize%, %MarginSize%
|
|
|
|
GUINormalFontSize := 15
|
|
|
|
GUINormalFontSize := 15
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Create GUI Elements
|
|
|
|
|
|
|
|
; ------------------------------------------------
|
|
|
|
Gui, Font, s10
|
|
|
|
Gui, Font, s10
|
|
|
|
; Gui, Font, s8
|
|
|
|
; Gui, Font, s8
|
|
|
|
if(TestingMode){
|
|
|
|
if(TestingMode){
|
|
|
|
Gui, Add, Text,cRed yp+0 x%MarginSpace% ,TESTING MODE
|
|
|
|
Gui, Add, Text,cRed yp+0 x%MarginSize% ,TESTING MODE
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(DevMode){
|
|
|
|
if(DevMode){
|
|
|
|
Gui, Add, Text,cRed yp+0 x+30 ,DEV MODE
|
|
|
|
Gui, Add, Text,cRed yp+0 x+30 ,DEV MODE
|
|
|
@ -381,28 +384,32 @@ if(DevMode){
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Text, x%Marginspace% y+5 w%EditBoxWidth%, Post Title
|
|
|
|
Gui, Add, Text, x%MarginSize% y+5, Post Title
|
|
|
|
Gui, Font, s8
|
|
|
|
Gui, Font, s8
|
|
|
|
Gui, Add, Checkbox, xp+120 yp+10 vBoldTitleWAPI Checked%BoldTitleCheckStatus% gUpdateVars,Bold Title on Discord/Telegram
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Checkbox, xp+220 yp+0 vNewLineBetweenTitle Checked%SpaceBetweenTitleBodyCheckStatus% gUpdateVars,Blank Line Between Title+Body
|
|
|
|
Gui, Font, s8
|
|
|
|
|
|
|
|
Gui, Add, Button, x+%MarginSize% gPasteClipboardToEditBox vPasteClipboardToSMPTitle, Paste Clipboard
|
|
|
|
|
|
|
|
Gui, Add, Checkbox, xp+120 vBoldTitleWAPI Checked%BoldTitleCheckStatus% gUpdateVars,Bold Title on Discord/Telegram
|
|
|
|
|
|
|
|
Gui, Add, Checkbox, xp+220 vNewLineBetweenTitle Checked%SpaceBetweenTitleBodyCheckStatus% gUpdateVars,Blank Line Between Title+Body
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Add, Edit, x%MarginSpace% y+3 w%EditBoxWidth% vPostTitle gUpdateCharCount h75, %PostTitle%
|
|
|
|
Gui, Add, Edit, x%MarginSize% y+%MarginSize% w%EditBoxWidth% vPostTitle gUpdateCharCount h50, %PostTitle%
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Text,w%EditBoxWidth%, Post Body
|
|
|
|
Gui, Add, Text,, Post Body
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Font, Normal
|
|
|
|
|
|
|
|
Gui, Font, s8
|
|
|
|
|
|
|
|
Gui, Add, Button, x+%MarginSize% gPasteClipboardToEditBox vPasteClipboardToSMPBody, Paste Clipboard
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Add, Edit, x%MarginSpace% y+2 w%EditBoxWidth% h150 vPostBody gUpdateCharCount, %PostBody%
|
|
|
|
Gui, Add, Edit, x%MarginSize% y+2 w%EditBoxWidth% h200 vPostBody gUpdateCharCount, %PostBody%
|
|
|
|
|
|
|
|
|
|
|
|
; Gui, font, color, cblack
|
|
|
|
; Gui, font, color, cblack
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Text, x%marginspace% y+%MarginSpace% w%EditBoxWidth% ,Tags
|
|
|
|
Gui, Add, Text, x%MarginSize% y+%MarginSize% w%EditBoxWidth% ,Tags
|
|
|
|
Gui, Font, s7
|
|
|
|
Gui, Font, s7
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Text, x65 yp+7, (Required by Steemit, Bastyon, )
|
|
|
|
Gui, Add, Text, x65 yp+7, (Required by Steemit, Bastyon, )
|
|
|
@ -413,37 +420,39 @@ Gui, Add, Edit,yp-5 x%CharCountXPos% w30 vCharCount,
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x%MarginSpace% y+10 vPostTags gUpdateVars h33 w%EditBoxWidth%, %PostTags%
|
|
|
|
Gui, Add, Edit, x%MarginSize% y+10 vPostTags gUpdateVars h33 w%EditBoxWidth%, %PostTags%
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Text,x%marginspace% w%EditBoxWidth%, Image Attachment Filepath
|
|
|
|
Gui, Add, Text,x%MarginSize% w%EditBoxWidth%, Image Attachment Filepath
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Edit, x%MarginSpace% y+2 vImageAttachmentFilepath gUpdateVars h33 w%ImageFilepathEditBoxWidth%, %ImageAttachmentFilepath%
|
|
|
|
Gui, Add, Edit, x%MarginSize% y+2 vImageAttachmentFilepath gUpdateVars h33 w%ImageFilepathEditBoxWidth%, %ImageAttachmentFilepath%
|
|
|
|
Gui, Add, Button, gSelectFilepath w%ImageSelectionButtonWidth% x+M yp+0 h33, Select
|
|
|
|
Gui, Add, Button, gSelectFilepath w%ImageSelectionButtonWidth% x+M yp+0 h33, Select
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, GroupBox,r2.5 x%MarginSpace% y+20 Center w%TemplatesGroupBoxWidth%, Other
|
|
|
|
Gui, Add, GroupBox,r2.5 x%MarginSize% y+20 Center w%TemplatesGroupBoxWidth%, Other
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Button,xp+%Marginspace% yp+35 w%EditBoxThirdsWidth% h30 gSaveAsTemplate, Save As Template
|
|
|
|
Gui, Add, Button,xp+%MarginSize% yp+35 w%EditBoxThirdsWidth% h30 gSaveAsTemplate, Save As Template
|
|
|
|
Gui, Add, Button,x+%MarginSpace% w%EditBoxThirdsWidth% h30 gLoadTemplate, Load Template
|
|
|
|
Gui, Add, Button,x+%MarginSize% w%EditBoxThirdsWidth% h30 gLoadTemplate, Load Template
|
|
|
|
Gui, Add, Button, x+%MarginSpace% w%EditBoxThirdsWidth% h30 gLoadLastPost, Load Last Post
|
|
|
|
Gui, Add, Button, x+%MarginSize% w%EditBoxThirdsWidth% h30 gLoadLastPost, Load Last Post
|
|
|
|
|
|
|
|
|
|
|
|
if(UpdateAvailable)
|
|
|
|
/*if(UpdateAvailable)
|
|
|
|
Gui, Add, Button, x%MarginSpaceDoubled% y+%MarginSpace% w%EditBoxHalfWidths% h30 gUpdateScript vUpdateAvailable, Update Available: %UpdateVersionNumber%
|
|
|
|
Gui, Add, Button, x%MarginSizeDoubled% y+%MarginSize% w%EditBoxHalfWidths% h30 gUpdateScript vUpdateAvailable, Update Available: %UpdateVersionNumber%
|
|
|
|
else,
|
|
|
|
else,
|
|
|
|
Gui, Add, Button, x%MarginSpaceDoubled% y+%MarginSpace% w%EditBoxHalfWidths% h30 gUpdateScript vUpdateAvailable, Poster Up-to-Date
|
|
|
|
*/
|
|
|
|
|
|
|
|
Gui, Add, Button, x%MarginSizeDoubled% y+%MarginSize% w%EditBoxHalfWidths% h30 gUpdateScript vUpdateAvailable, %ScriptAbbreviatedName% Up-to-Date
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
|
|
if(ChromeUpdateAvailable)
|
|
|
|
if(ChromeUpdateAvailable)
|
|
|
|
Gui, Add, Button,x+%MarginSpace% yp+0 w%EditBoxHalfWidths% h30 vChromeUpdateAvailable gUpdateChrome, Chrome Update Available!
|
|
|
|
Gui, Add, Button,x+%MarginSize% yp+0 w%EditBoxHalfWidths% h30 vChromeUpdateAvailable gUpdateChrome, Chrome Update Available!
|
|
|
|
else,
|
|
|
|
else,
|
|
|
|
Gui, Add, Button,x+%MarginSpace% yp+0 w%EditBoxHalfWidths% h30 vChromeUpdateAvailable gUpdateChrome , Chrome Up-to-Date
|
|
|
|
*/
|
|
|
|
|
|
|
|
Gui, Add, Button,x+%MarginSize% yp+0 w%EditBoxHalfWidths% h30 vChromeUpdateAvailable gUpdateChrome , Chrome Up-to-Date
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(DevMode){
|
|
|
|
if(DevMode){
|
|
|
|
Gui, Add, Button, x%MarginSpace% y+10 w%EditBoxThirdsWidth% h30 gOpenErrorLog, OpenErrorLog
|
|
|
|
Gui, Add, Button, x%MarginSize% y+10 w%EditBoxThirdsWidth% h30 gOpenErrorLog, OpenErrorLog
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -465,23 +474,26 @@ Gui, Add, GroupBox,r4 x%PlatformsGroupBoxXLocation% y20 w300, Settings
|
|
|
|
Gui, Font, s11
|
|
|
|
Gui, Font, s11
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Checkbox, xp+10 yp+25 vAutoUpdateCheck Checked%AutoUpdateCheckCheckStatus% gUpdateVars, Auto Update Check
|
|
|
|
Gui, Add, Checkbox, xp+10 yp+25 vAutoUpdateCheck Checked%AutoUpdateCheckCheckStatus% gUpdateVars, Auto Update Check
|
|
|
|
Gui, Add, Checkbox, vReuseTabs Checked%ReuseTabsCheckStatus% gUpdateVars, Try to Re-Use Tabs
|
|
|
|
; Gui, Add, Checkbox, vReuseTabs Checked%ReuseTabsCheckStatus% gUpdateVars, Try to Re-Use Tabs
|
|
|
|
; Gui, Add, Checkbox, vNewChromeWindow Checked%AutoUpdateCheckCheckStatus% gUpdateVars, Create New Chrome Window (WIP)
|
|
|
|
|
|
|
|
Gui, Add, Checkbox,vShowTooltipProgress Checked%ShowTooltipProgressCheckStatus% gUpdateVars, Show Tooltip of Progress
|
|
|
|
Gui, Add, Checkbox,vShowTooltipProgress Checked%ShowTooltipProgressCheckStatus% gUpdateVars, Show Tooltip of Progress
|
|
|
|
; Gui, Add, Checkbox, vAutoUpdateCheck Checked%AutoUpdateCheckCheckStatus% gUpdateVars, Auto Update Check
|
|
|
|
|
|
|
|
Gui, Add, Checkbox, vSaveTagsBetweenPosts Checked%SaveTagsBetweenPostsCheckStatus% gUpdateVars, Save Tags Between Posts
|
|
|
|
Gui, Add, Checkbox, vSaveTagsBetweenPosts Checked%SaveTagsBetweenPostsCheckStatus% gUpdateVars, Save Tags Between Posts
|
|
|
|
Gui, Add, Checkbox, vPauseBetweenPosts Checked%PauseBetweenPostsCheckCheckStatus% gUpdateVars, Pause Briefly Between Posts
|
|
|
|
Gui, Add, Checkbox, vConfirmBeforeSubmit checked%ConfirmBeforeSubmit%, Confirm Before Submit
|
|
|
|
|
|
|
|
; Gui, Add, Checkbox, vSaveGUIPosition checked%SaveGUIPosition%, Save GUI Position
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Gui, Add, Checkbox, vPauseBetweenPosts Checked%PauseBetweenPostsCheckCheckStatus% gUpdateVars, Pause Briefly Between Posts
|
|
|
|
; Gui, Add, Checkbox, vAutoRestartChromeDebug Checked%PauseBetweenPostsCheckCheckStatus% gUpdateVars, Auto Restart Chrome in Debug Mode
|
|
|
|
; Gui, Add, Checkbox, vAutoRestartChromeDebug Checked%PauseBetweenPostsCheckCheckStatus% gUpdateVars, Auto Restart Chrome in Debug Mode
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, GroupBox,r6.4 x%PlatformsGroupBoxXLocation% y210 w300, Platforms
|
|
|
|
Gui, Add, GroupBox,r6.4 x%PlatformsGroupBoxXLocation% y210 w300, Platforms
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Font, s8
|
|
|
|
|
|
|
|
Gui, Font, Bold
|
|
|
|
|
|
|
|
Gui, Add, Button, xp+110 yp+0 gUncheckAllPlatforms, Uncheck All
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Add, Checkbox, xp+10 yp+30 vDiscord Checked%DiscordCheckStatus% gUpdateVars, Discord
|
|
|
|
Gui, Add, Checkbox, x%PlatformsGroupBoxXLocation% yp+30 vDiscord Checked%DiscordCheckStatus% gUpdateVars, Discord
|
|
|
|
Gui, Add, Checkbox, y+7 vTelegram Checked%TelegramCheckStatus% gUpdateVars, Telegram
|
|
|
|
Gui, Add, Checkbox, y+7 vTelegram Checked%TelegramCheckStatus% gUpdateVars, Telegram
|
|
|
|
Gui, Add, Checkbox, y+7 vSubscribeStar Checked%SubScribeStarCheckStatus%gUpdateVars, SubscribeStar
|
|
|
|
Gui, Add, Checkbox, y+7 vSubscribeStar Checked%SubScribeStarCheckStatus%gUpdateVars, SubscribeStar
|
|
|
|
Gui, Add, Checkbox, y+7 vMinds Checked%MindsCheckStatus% gUpdateVars, Minds
|
|
|
|
Gui, Add, Checkbox, y+7 vMinds Checked%MindsCheckStatus% gUpdateVars, Minds
|
|
|
@ -489,26 +501,17 @@ Gui, Add, Checkbox, y+7 vGab Checked%GabCheckStatus% gUpdateVars, Gab
|
|
|
|
Gui, Add, Checkbox, y+7 vLocals Checked%LocalsCheckStatus% gUpdateVars, Locals
|
|
|
|
Gui, Add, Checkbox, y+7 vLocals Checked%LocalsCheckStatus% gUpdateVars, Locals
|
|
|
|
Gui, Add, Checkbox, y+7 vTwetch Checked%TwetchCheckStatus% gUpdateVars, Twetch
|
|
|
|
Gui, Add, Checkbox, y+7 vTwetch Checked%TwetchCheckStatus% gUpdateVars, Twetch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Second Row
|
|
|
|
; Second Row
|
|
|
|
; Gui, Add, Checkbox, vLinkedIn Checked%LinkedINCheckStatus% gUpdateVars, LinkedIn
|
|
|
|
|
|
|
|
Gui, Add, Checkbox, x+75 yp-190 vLinkedIn Checked%LinkedINCheckStatus% gUpdateVars, LinkedIn
|
|
|
|
Gui, Add, Checkbox, x+75 yp-190 vLinkedIn Checked%LinkedINCheckStatus% gUpdateVars, LinkedIn
|
|
|
|
; Gui, Add, Checkbox, y+7 vLinkedIn Checked%LinkedINCheckStatus% gUpdateVars, LinkedIn
|
|
|
|
|
|
|
|
; Gui, Add, Checkbox, y+7 vThinkspot Checked%ThinkSpotCheckStatus% gUpdateVars, Thinkspot
|
|
|
|
|
|
|
|
; Gui, Add, Checkbox, y+7 vFlote Checked%FloteCheckStatus% gUpdateVars, Flote
|
|
|
|
|
|
|
|
; Gui, Add, Checkbox, y+7 vParler Checked%ParlerCheckStatus% gUpdateVars, Parler
|
|
|
|
|
|
|
|
Gui, Add, Checkbox, y+7 vSteemit Checked%SteemitCheckStatus% gUpdateVars, Steemit
|
|
|
|
Gui, Add, Checkbox, y+7 vSteemit Checked%SteemitCheckStatus% gUpdateVars, Steemit
|
|
|
|
; Gui, Add, Checkbox, y+7 vPintrest Checked%PintrestCheckStatus% gUpdateVars, Pintrest
|
|
|
|
|
|
|
|
Gui, Add, Checkbox, y+7 vPocketNet Checked%PocketNetCheckStatus% , Bastyon
|
|
|
|
Gui, Add, Checkbox, y+7 vPocketNet Checked%PocketNetCheckStatus% , Bastyon
|
|
|
|
; Gui, Add, Checkbox, y+7 vTumblr Checked%TumblrCheckStatus% , Tumblr
|
|
|
|
|
|
|
|
Gui, Add, Checkbox, y+7 vGettr Checked%GettrCheckStatus% gUpdateVars, Gettr
|
|
|
|
Gui, Add, Checkbox, y+7 vGettr Checked%GettrCheckStatus% gUpdateVars, Gettr
|
|
|
|
Gui, Add, Checkbox, y+7 vMeWe Checked%MeWeCheckStatus% gUpdateVars, MeWe
|
|
|
|
Gui, Add, Checkbox, y+7 vMeWe Checked%MeWeCheckStatus% gUpdateVars, MeWe
|
|
|
|
|
|
|
|
Gui, Add, Checkbox, y+7 vTumblr Checked%Tumblr% gUpdateVars, Tumblr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Font, Bold
|
|
|
|
gui, Font, s15
|
|
|
|
gui, Font, s15
|
|
|
|
; : Gui, Add, Text, , My Text.
|
|
|
|
|
|
|
|
; Gui, Font, Color, Red
|
|
|
|
|
|
|
|
Gui, Add, Button, x%PlatformsGroupBoxXLocation% y485 w300 h113 gPostPost, Publish
|
|
|
|
Gui, Add, Button, x%PlatformsGroupBoxXLocation% y485 w300 h113 gPostPost, Publish
|
|
|
|
|
|
|
|
|
|
|
|
; Gui, Add, Button, x%PlatformsGroupBoxXLocation% y+20 w300 h30 gSchedulePost, Schedule Post
|
|
|
|
; Gui, Add, Button, x%PlatformsGroupBoxXLocation% y+20 w300 h30 gSchedulePost, Schedule Post
|
|
|
@ -520,32 +523,19 @@ gui, font, normal
|
|
|
|
Gui, Add, StatusBar,, Total Posts Posted: %TotalPostsPosted% | Total Run Time: %TotalRunTime% Seconds |
|
|
|
|
Gui, Add, StatusBar,, Total Posts Posted: %TotalPostsPosted% | Total Run Time: %TotalRunTime% Seconds |
|
|
|
|
|
|
|
|
|
|
|
|
; easier to just let the gui size be as needed instead of trying to recalculate the size each time an element is added
|
|
|
|
; easier to just let the gui size be as needed instead of trying to recalculate the size each time an element is added
|
|
|
|
Gui, Show,,%FullScriptName% ; , w%GuiWidth%, %ScriptName%
|
|
|
|
; if(SaveGUIPosition)
|
|
|
|
|
|
|
|
Gui, Show, x%XPosition% y%YPosition% ,%FullScriptName% ; , w%GuiWidth%, %ScriptName%
|
|
|
|
|
|
|
|
; else,
|
|
|
|
|
|
|
|
; Gui, Show,,%FullScriptName% ; , w%GuiWidth%, %ScriptName%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Activate the Post Title input box so user can start instantly typing in their new message
|
|
|
|
ControlFocus, Edit1, %FullScriptName%
|
|
|
|
ControlFocus, Edit1, %FullScriptName%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; check for updates if the setting is enabled
|
|
|
|
; check for updates if the setting is enabled
|
|
|
|
if(AutoUpdateCheck AND !UpdateAvailable){
|
|
|
|
if(AutoUpdateCheck AND !UpdateAvailable){
|
|
|
|
Message = Checking for Updates
|
|
|
|
SetTimer, CheckForUpdates, -1000
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
; DevModeMsgBox("checking for updates")
|
|
|
|
|
|
|
|
; msgbox, checkin for update
|
|
|
|
|
|
|
|
; DevModeMsgBox(GitReleasesAPIURL)
|
|
|
|
|
|
|
|
; UpdateAvailable :=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(CheckForUpdates(GitReleasesAPIURL))
|
|
|
|
|
|
|
|
GuiControl,,UpdateAvailable, Uploader Update Available!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(CheckForChromeUpdates(ChromeFilepath)){
|
|
|
|
|
|
|
|
GuiControl,,ChromeUpdateAvailable, Chrome Update Available!
|
|
|
|
|
|
|
|
ChromeUpdateAvailable := 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;---Check for Update---
|
|
|
|
|
|
|
|
;------------------------------------------------
|
|
|
|
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -554,6 +544,9 @@ Return
|
|
|
|
|
|
|
|
|
|
|
|
;---Misc GoSubs---
|
|
|
|
;---Misc GoSubs---
|
|
|
|
;------------------------------------------------
|
|
|
|
;------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SaveAsTemplate:
|
|
|
|
SaveAsTemplate:
|
|
|
|
TemplateDirectory = %A_ScriptDir%\Lib\Templates
|
|
|
|
TemplateDirectory = %A_ScriptDir%\Lib\Templates
|
|
|
|
if(!FileExist(TemplateDirectory)){
|
|
|
|
if(!FileExist(TemplateDirectory)){
|
|
|
@ -618,44 +611,12 @@ UpdateScript:
|
|
|
|
UpdateScript()
|
|
|
|
UpdateScript()
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UpdateChrome:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(CheckForChromeUpdates = "")
|
|
|
|
|
|
|
|
Status := CheckForChromeUpdates(ChromeFilepath)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!status){
|
|
|
|
|
|
|
|
OnMessage(0x44, "OnMsgBoxConfirmChromiumOverwrite")
|
|
|
|
|
|
|
|
MsgBox 0x41, Already Up-to-Date, Yor current Chromium version is already up to date. `nDo you want to download and overwrite it?
|
|
|
|
|
|
|
|
OnMessage(0x44, "")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IfMsgBox OK, {
|
|
|
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
} Else IfMsgBox Cancel, {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Status := DownloadLatestChromium()
|
|
|
|
|
|
|
|
if(Status)
|
|
|
|
|
|
|
|
GuiControl,,ChromeUpdateAvailable, Chrome Up-to-Dat
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CancelPost:
|
|
|
|
CancelPost:
|
|
|
|
GuiClose:
|
|
|
|
GuiClose:
|
|
|
|
; ExitApp
|
|
|
|
; ExitApp
|
|
|
|
Gui, Submit,
|
|
|
|
Gui, Submit,
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
OpenErrorLog:
|
|
|
|
|
|
|
|
run, %ErrorLoggingDirectory%
|
|
|
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ToggleTestingMode:
|
|
|
|
ToggleTestingMode:
|
|
|
|
ToggleTestingMode()
|
|
|
|
ToggleTestingMode()
|
|
|
@ -672,29 +633,28 @@ ToggleDevMode()
|
|
|
|
run, "%A_ScriptFullPath%" "LastPost"
|
|
|
|
run, "%A_ScriptFullPath%" "LastPost"
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
OpenGiteaPage:
|
|
|
|
|
|
|
|
run, https://freedomain.dev/yuriy/social-media-poster
|
|
|
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CompileScript:
|
|
|
|
|
|
|
|
; msgbox, compiling
|
|
|
|
|
|
|
|
IniWrite, %changelog%, %ChangelogIniFilepath%, %ScriptSettingsSection%, Changelog
|
|
|
|
|
|
|
|
IniWrite, %ScriptVersion%, %ChangelogIniFilepath%, %ScriptSettingsSection%, ScriptVersion
|
|
|
|
|
|
|
|
IniWrite, %UpdateURL%, %ChangelogIniFilepath%, %ScriptSettingsSection%, UpdateURL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
run, "%A_scriptdir%\Lib\Releases\Compile Scripts to EXE.ahk" SocialMediaPoster Production
|
|
|
|
|
|
|
|
; ExitApp
|
|
|
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UploadFiles:
|
|
|
|
|
|
|
|
msgbox, this button needs to be re-programmed. Search for "UploadFiles:" in main program
|
|
|
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SelectFilepath:
|
|
|
|
SelectFilepath:
|
|
|
|
FileSelectFile, SelectedImageFilepath
|
|
|
|
FileSelectFile, SelectedImageFilepath
|
|
|
|
GuiControl,, ImageAttachmentFilepath, %SelectedImageFilepath%
|
|
|
|
GuiControl,, ImageAttachmentFilepath, %SelectedImageFilepath%
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UncheckAllPlatforms:
|
|
|
|
|
|
|
|
GuiControl,,Discord, 0
|
|
|
|
|
|
|
|
GuiControl,,Telegram, 0
|
|
|
|
|
|
|
|
GuiControl,,SubScribeStar, 0
|
|
|
|
|
|
|
|
GuiControl,,Minds, 0
|
|
|
|
|
|
|
|
GuiControl,,Gab, 0
|
|
|
|
|
|
|
|
GuiControl,,Locals, 0
|
|
|
|
|
|
|
|
GuiControl,,Twetch, 0
|
|
|
|
|
|
|
|
GuiControl,,LinkedIn, 0
|
|
|
|
|
|
|
|
GuiControl,,Steemit, 0
|
|
|
|
|
|
|
|
GuiControl,,Bastyon, 0
|
|
|
|
|
|
|
|
GuiControl,,Gettr, 0
|
|
|
|
|
|
|
|
GuiControl,,MeWe, 0
|
|
|
|
|
|
|
|
GuiControl,,Tumblr, 0
|
|
|
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
UpdateVars:
|
|
|
|
UpdateVars:
|
|
|
|
Gui, Submit, NoHide
|
|
|
|
Gui, Submit, NoHide
|
|
|
|
Return
|
|
|
|
Return
|
|
|
@ -703,19 +663,12 @@ UpdateCharCount:
|
|
|
|
Gui, Submit, NoHide
|
|
|
|
Gui, Submit, NoHide
|
|
|
|
Count := StrLen(PostBody)
|
|
|
|
Count := StrLen(PostBody)
|
|
|
|
|
|
|
|
|
|
|
|
/*if(Count > 256){
|
|
|
|
|
|
|
|
GuiControl,, Twetch, 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GuiControl,, CharCount, %Count%
|
|
|
|
GuiControl,, CharCount, %Count%
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TryFailedAgain:
|
|
|
|
TryFailedAgain:
|
|
|
|
; msgbox %ErrorLoggingDirectory%
|
|
|
|
|
|
|
|
run, %A_ScriptFullPath% "LastPost"
|
|
|
|
run, %A_ScriptFullPath% "LastPost"
|
|
|
|
ExitApp
|
|
|
|
ExitApp
|
|
|
|
; Return
|
|
|
|
; Return
|
|
|
@ -727,11 +680,10 @@ Gui, Submit
|
|
|
|
Gui, Destroy
|
|
|
|
Gui, Destroy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Font, s20
|
|
|
|
Gui, Font, s20
|
|
|
|
Gui, Add, Text, Center w350 x%marginspace%,Time to Post At
|
|
|
|
Gui, Add, Text, Center w350 x%MarginSize%,Time to Post At
|
|
|
|
Gui, Add, DateTime, x%marginspace% vScheduledTime gUpdateVars w350, hh:mm tt
|
|
|
|
Gui, Add, DateTime, x%MarginSize% vScheduledTime gUpdateVars w350, hh:mm tt
|
|
|
|
Gui, Font, s8
|
|
|
|
Gui, Font, s8
|
|
|
|
Gui, Add, Checkbox, vDisplayCountdownTooltip gUpdateVars checked, Display Tooltip with Countdown
|
|
|
|
Gui, Add, Checkbox, vDisplayCountdownTooltip gUpdateVars checked, Display Tooltip with Countdown
|
|
|
|
Gui, Font, s20
|
|
|
|
Gui, Font, s20
|
|
|
@ -742,9 +694,10 @@ Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PostPost:
|
|
|
|
PostPost:
|
|
|
|
Gui, Submit
|
|
|
|
Gui, Submit, NoHide
|
|
|
|
|
|
|
|
|
|
|
|
; Msgbox % "PostTags: " PostTags
|
|
|
|
; Get GUI window position for saving to settings file
|
|
|
|
|
|
|
|
WinGetPos, XPosition, YPosition, , , A
|
|
|
|
|
|
|
|
|
|
|
|
if(InStr(PostTags, "http")){
|
|
|
|
if(InStr(PostTags, "http")){
|
|
|
|
Message = Post Tags contain "http". Please edit and remove the url and try again.
|
|
|
|
Message = Post Tags contain "http". Please edit and remove the url and try again.
|
|
|
@ -756,7 +709,6 @@ if(InStr(PostTags, "http")){
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Destroy
|
|
|
|
Gui, Destroy
|
|
|
|
|
|
|
|
|
|
|
|
; 20211023061711
|
|
|
|
|
|
|
|
ScheduledTime := SubStr(ScheduledTime, 1, 12) ; pull out time date up to the minute and exclude seconds
|
|
|
|
ScheduledTime := SubStr(ScheduledTime, 1, 12) ; pull out time date up to the minute and exclude seconds
|
|
|
|
; Msgbox % "ScheduledTime: " ScheduledTime
|
|
|
|
; Msgbox % "ScheduledTime: " ScheduledTime
|
|
|
|
; clipboard := ScheduledTime
|
|
|
|
; clipboard := ScheduledTime
|
|
|
@ -769,7 +721,6 @@ ScheduledTime := SubStr(ScheduledTime, 1, 12) ; pull out time date up to the min
|
|
|
|
; if the argument is an error logging post, we want to continue where it left off and log to the same place
|
|
|
|
; if the argument is an error logging post, we want to continue where it left off and log to the same place
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Msgbox % "ErrorLoggingDirectory: " ErrorLoggingDirectory
|
|
|
|
|
|
|
|
if(InStr(ErrorLoggingDirectory, "\Templates\") OR ErrorLoggingDirectory = "" OR InStr(ErrorLoggingDirectory, "VideoLinks.ini")){
|
|
|
|
if(InStr(ErrorLoggingDirectory, "\Templates\") OR ErrorLoggingDirectory = "" OR InStr(ErrorLoggingDirectory, "VideoLinks.ini")){
|
|
|
|
; msgbox, creating new error logging files
|
|
|
|
; msgbox, creating new error logging files
|
|
|
|
CreateErrorLoggingFiles()
|
|
|
|
CreateErrorLoggingFiles()
|
|
|
@ -777,6 +728,10 @@ if(InStr(ErrorLoggingDirectory, "\Templates\") OR ErrorLoggingDirectory = "" OR
|
|
|
|
} ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Save Script Settings to File
|
|
|
|
|
|
|
|
; ------------------------------------------------
|
|
|
|
|
|
|
|
IniWrite, %XPosition%, %SettingsIniFilepath%, %ScriptSettingsSection%, XPosition
|
|
|
|
|
|
|
|
IniWrite, %YPosition%, %SettingsIniFilepath%, %ScriptSettingsSection%, YPosition
|
|
|
|
|
|
|
|
|
|
|
|
IniWrite, %BoldTitleWAPI%, %SettingsIniFilepath%, SocialMediaPoster, BoldTitleWAPI
|
|
|
|
IniWrite, %BoldTitleWAPI%, %SettingsIniFilepath%, SocialMediaPoster, BoldTitleWAPI
|
|
|
|
IniWrite, %NewLineBetweenTitle%, %SettingsIniFilepath%, SocialMediaPoster, NewLineBetweenTitle
|
|
|
|
IniWrite, %NewLineBetweenTitle%, %SettingsIniFilepath%, SocialMediaPoster, NewLineBetweenTitle
|
|
|
@ -787,6 +742,14 @@ IniWrite, %SaveTagsBetweenPosts%, %SettingsIniFilepath%, SocialMediaPoster, Save
|
|
|
|
IniWrite, %PauseBetweenPosts%, %SettingsIniFilepath%, SocialMediaPoster, PauseBetweenPosts
|
|
|
|
IniWrite, %PauseBetweenPosts%, %SettingsIniFilepath%, SocialMediaPoster, PauseBetweenPosts
|
|
|
|
IniWrite, %ErrorLoggingDirectory%, %SettingsIniFilepath%, %ScriptSettingsSection%, LastPost
|
|
|
|
IniWrite, %ErrorLoggingDirectory%, %SettingsIniFilepath%, %ScriptSettingsSection%, LastPost
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IniWrite, %ConfirmBeforeSubmit%, %SettingsIniFilepath%, %ScriptSettingsSection%, ConfirmBeforeSubmit
|
|
|
|
|
|
|
|
; IniWrite, %SaveGUIPosition%, %SettingsIniFilepath%, %ScriptSettingsSection%, SaveGUIPosition
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Used by Post Scheduler, VU, Livestream Scheduler. Filepath changes between script updates
|
|
|
|
|
|
|
|
IniWrite, %A_ScriptFullPath%, %SettingsIniFilepath%, Filepaths, SocialMediaPosterFilepath
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Combines two variables together so they can be used as needed later
|
|
|
|
; Combines two variables together so they can be used as needed later
|
|
|
@ -832,29 +795,20 @@ IniWrite, %ShowTooltipProgress%, %SettingsIniFilepath%, SocialMediaPoster, ShowT
|
|
|
|
(Locals = 1)?(PostedWebsites .= "Locals|") : ()
|
|
|
|
(Locals = 1)?(PostedWebsites .= "Locals|") : ()
|
|
|
|
(LinkedIn = 1)?(PostedWebsites .= "LinkedIn|") : ()
|
|
|
|
(LinkedIn = 1)?(PostedWebsites .= "LinkedIn|") : ()
|
|
|
|
(Twetch = 1)?(PostedWebsites .= "Twetch|") : ()
|
|
|
|
(Twetch = 1)?(PostedWebsites .= "Twetch|") : ()
|
|
|
|
; (ThinkSpot = 0)?(PostedWebsites .= "ThinkSpot|") : ()
|
|
|
|
|
|
|
|
; (Flote = 1)?(PostedWebsites .= "Flote|") : ()
|
|
|
|
|
|
|
|
(PocketNet = 1)?(PostedWebsites .= "PocketNet|") : ()
|
|
|
|
(PocketNet = 1)?(PostedWebsites .= "PocketNet|") : ()
|
|
|
|
(Gettr = 1)?(PostedWebsites .= "Gettr|") : ()
|
|
|
|
(Gettr = 1)?(PostedWebsites .= "Gettr|") : ()
|
|
|
|
; (Parler = 1)?(PostedWebsites .= "Parler|") : ()
|
|
|
|
|
|
|
|
(Steemit = 1)?(PostedWebsites .= "Steemit|") : ()
|
|
|
|
(Steemit = 1)?(PostedWebsites .= "Steemit|") : ()
|
|
|
|
(Pintrest = 1)?(PostedWebsites .= "Pintrest|") : ()
|
|
|
|
|
|
|
|
(Tumblr = 1)?(PostedWebsites .= "Tumblr|") : ()
|
|
|
|
(Tumblr = 1)?(PostedWebsites .= "Tumblr|") : ()
|
|
|
|
|
|
|
|
|
|
|
|
Message = Starting SMP with: **V%ScriptVersion%** `nTo sites: %PostedWebsites% `nWith Title: **%PostTitle%** `nWith Body:%PostBody% `nWith Tags: %PostTags%
|
|
|
|
Message = Starting SMP with: **V%ScriptVersion%** `nTo sites: %PostedWebsites% `nWith Title: **%PostTitle%** `nWith Body:%PostBody% `nWith Tags: %PostTags%
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(InStr(PostBody, "www.dlive.tv") AND !InStr(PostBody, "https://www.dlive.tv")){ ; if posting Dlive link, turn it into hyperlink
|
|
|
|
if(InStr(PostBody, "www.dlive.tv") AND !InStr(PostBody, "https://www.dlive.tv")){ ; if posting Dlive link, turn it into hyperlink
|
|
|
|
PostBody := StrReplace(PostBody, "www.dlive.tv", "https://www.dlive.tv")
|
|
|
|
PostBody := StrReplace(PostBody, "www.dlive.tv", "https://www.dlive.tv")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Msgbox % "PostTitleAndBody: " PostTitleAndBody
|
|
|
|
|
|
|
|
; 20211023060415
|
|
|
|
|
|
|
|
if(ScheduledPost){
|
|
|
|
if(ScheduledPost){
|
|
|
|
; CheckSeleniumDriver()
|
|
|
|
; CheckSeleniumDriver()
|
|
|
|
; Menu, Tray, Icon, %A_ScriptDir%\Lib\FreedomainShare_Scheduled.ico
|
|
|
|
; Menu, Tray, Icon, %A_ScriptDir%\Lib\FreedomainShare_Scheduled.ico
|
|
|
@ -907,8 +861,8 @@ Gosub, PostToMeWe
|
|
|
|
if(Twetch)
|
|
|
|
if(Twetch)
|
|
|
|
Gosub, PostToTwetch
|
|
|
|
Gosub, PostToTwetch
|
|
|
|
|
|
|
|
|
|
|
|
; if(Thinkspot)
|
|
|
|
if(Tumblr)
|
|
|
|
; Gosub, PostToThinkSpot
|
|
|
|
Gosub, PostToTumblr
|
|
|
|
|
|
|
|
|
|
|
|
if(Locals)
|
|
|
|
if(Locals)
|
|
|
|
Gosub, PostToLocals
|
|
|
|
Gosub, PostToLocals
|
|
|
@ -951,9 +905,9 @@ WebsiteButtonWidths = 115
|
|
|
|
WebsiteStatusEditWidths = 150
|
|
|
|
WebsiteStatusEditWidths = 150
|
|
|
|
|
|
|
|
|
|
|
|
StatusTextWidth := (WebsiteButtonWidths + WebsiteStatusEditWidths) * 2
|
|
|
|
StatusTextWidth := (WebsiteButtonWidths + WebsiteStatusEditWidths) * 2
|
|
|
|
StatusTextSecondRowXPos := WebsiteStatusEditWidths + WebsiteButtonWidths + (MarginSpace * 4)
|
|
|
|
StatusTextSecondRowXPos := WebsiteStatusEditWidths + WebsiteButtonWidths + (MarginSize * 4)
|
|
|
|
ErrorSummaryLogXPos := StatusTextSecondRowXPos + WebsiteStatusEditWidths + WebsiteButtonWidths + (MarginSpace * 2)
|
|
|
|
ErrorSummaryLogXPos := StatusTextSecondRowXPos + WebsiteStatusEditWidths + WebsiteButtonWidths + (MarginSize * 2)
|
|
|
|
ErrorSummaryLogSplitLineXPos := ErrorSummaryLogXPos - (MarginSpace)
|
|
|
|
ErrorSummaryLogSplitLineXPos := ErrorSummaryLogXPos - (MarginSize)
|
|
|
|
ErrorLogSummaryWidth := 385
|
|
|
|
ErrorLogSummaryWidth := 385
|
|
|
|
ErrorLogSummaryHeight := 480
|
|
|
|
ErrorLogSummaryHeight := 480
|
|
|
|
ButtonHeights := 30
|
|
|
|
ButtonHeights := 30
|
|
|
@ -963,40 +917,40 @@ ButtonHeights := 30
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Add, Text,w%StatusTextWidth% y%MarginSpace% Center, Status
|
|
|
|
Gui, Add, Text,w%StatusTextWidth% y%MarginSize% Center, Status
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Add, Button,x%MarginSpace% y40 w%WebsiteButtonWidths% Center h%ButtonHeights%, Discord
|
|
|
|
Gui, Add, Button,x%MarginSize% y40 w%WebsiteButtonWidths% Center h%ButtonHeights%, Discord
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Discord%
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Discord%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Add, Button,x%MarginSpace% w%WebsiteButtonWidths% Center h%ButtonHeights%, Telegram
|
|
|
|
Gui, Add, Button,x%MarginSize% w%WebsiteButtonWidths% Center h%ButtonHeights%, Telegram
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Telegram%
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Telegram%
|
|
|
|
|
|
|
|
|
|
|
|
gui, font, s8
|
|
|
|
gui, font, s8
|
|
|
|
Gui, Add, Button,x%MarginSpace% w%WebsiteButtonWidths% Center h%ButtonHeights%, SubScribeStar
|
|
|
|
Gui, Add, Button,x%MarginSize% w%WebsiteButtonWidths% Center h%ButtonHeights%, SubScribeStar
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %SubscribeStar%
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %SubscribeStar%
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Add, Button,x%MarginSpace% w%WebsiteButtonWidths% h%ButtonHeights% Center, Minds
|
|
|
|
Gui, Add, Button,x%MarginSize% w%WebsiteButtonWidths% h%ButtonHeights% Center, Minds
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Minds%
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Minds%
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Add, Button,x%MarginSpace% w%WebsiteButtonWidths% h%ButtonHeights% Center, Gab
|
|
|
|
Gui, Add, Button,x%MarginSize% w%WebsiteButtonWidths% h%ButtonHeights% Center, Gab
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Gab%
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Gab%
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Add, Button,x%MarginSpace% w%WebsiteButtonWidths% h%ButtonHeights% Center, Locals
|
|
|
|
Gui, Add, Button,x%MarginSize% w%WebsiteButtonWidths% h%ButtonHeights% Center, Locals
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Locals%
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Locals%
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Add, Button,x%MarginSpace% w%WebsiteButtonWidths% h%ButtonHeights% Center, Gettr
|
|
|
|
Gui, Add, Button,x%MarginSize% w%WebsiteButtonWidths% h%ButtonHeights% Center, Gettr
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Gettr%
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Gettr%
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Add, Button,x%MarginSpace% w%WebsiteButtonWidths%Center h%ButtonHeights%, Twetch
|
|
|
|
Gui, Add, Button,x%MarginSize% w%WebsiteButtonWidths%Center h%ButtonHeights%, Twetch
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Twetch%
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Twetch%
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Add, Button,x%MarginSpace% w%WebsiteButtonWidths% h%ButtonHeights% Center, LinkedIn
|
|
|
|
Gui, Add, Button,x%MarginSize% w%WebsiteButtonWidths% h%ButtonHeights% Center, LinkedIn
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %LinkedIn%
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %LinkedIn%
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Add, Button,x%MarginSpace% w%WebsiteButtonWidths% h%ButtonHeights% Center, MeWe
|
|
|
|
Gui, Add, Button,x%MarginSize% w%WebsiteButtonWidths% h%ButtonHeights% Center, MeWe
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %MeWe%
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %MeWe%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1009,57 +963,58 @@ Gui, Font, s%GUINormalFontSize%
|
|
|
|
|
|
|
|
|
|
|
|
; Gui, Font, s%GUINormalFontSize%
|
|
|
|
; Gui, Font, s%GUINormalFontSize%
|
|
|
|
|
|
|
|
|
|
|
|
; Gui, Add, Button,x%StatusTextSecondRowXPos% y+%MarginSpace% w%WebsiteButtonWidths% h%ButtonHeights% Center, Flote
|
|
|
|
; Gui, Add, Button,x%StatusTextSecondRowXPos% y+%MarginSize% w%WebsiteButtonWidths% h%ButtonHeights% Center, Flote
|
|
|
|
; Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Flote%
|
|
|
|
; Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Flote%
|
|
|
|
|
|
|
|
|
|
|
|
; Gui, Add, Button,x%StatusTextSecondRowXPos% y+%MarginSpace% w%WebsiteButtonWidths% h%ButtonHeights% gActivateParlerTab Center, Parler
|
|
|
|
; Gui, Add, Button,x%StatusTextSecondRowXPos% y+%MarginSize% w%WebsiteButtonWidths% h%ButtonHeights% gActivateParlerTab Center, Parler
|
|
|
|
; Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Parler%
|
|
|
|
; Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Parler%
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Add, Button,x%MarginSpace% w%WebsiteButtonWidths% h%ButtonHeights% Center, Steemit
|
|
|
|
Gui, Add, Button,x%MarginSize% w%WebsiteButtonWidths% h%ButtonHeights% Center, Steemit
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Steemit%
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Steemit%
|
|
|
|
|
|
|
|
|
|
|
|
; Gui, Add, Button,x%StatusTextSecondRowXPos% y+%MarginSpace% w%WebsiteButtonWidths% h%ButtonHeights% Center, Pintrest
|
|
|
|
; Gui, Add, Button,x%StatusTextSecondRowXPos% y+%MarginSize% w%WebsiteButtonWidths% h%ButtonHeights% Center, Pintrest
|
|
|
|
; Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Pintrest%
|
|
|
|
; Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Pintrest%
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Add, Button,x%MarginSpace% w%WebsiteButtonWidths% h%ButtonHeights% Center, Bastyon
|
|
|
|
Gui, Add, Button,x%MarginSize% w%WebsiteButtonWidths% h%ButtonHeights% Center, Bastyon
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %PocketNet%
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Bastyon%
|
|
|
|
|
|
|
|
|
|
|
|
; Gui, Add, Button,x%StatusTextSecondRowXPos% y+%MarginSpace% w%WebsiteButtonWidths% h%ButtonHeights% Center, Tumblr
|
|
|
|
Gui, Add, Button,x%MarginSize% w%WebsiteButtonWidths% h%ButtonHeights% Center, Tumblr
|
|
|
|
; Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Tumblr%
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %Tumblr%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Gui, Font, s9
|
|
|
|
; Gui, Font, s9
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
Gui, Add, Button, x%MarginSpace% y+20 w165 h50 gCancelPost, Close
|
|
|
|
Gui, Add, Button, x%MarginSize% y+20 w165 h50 gCancelPost, Close
|
|
|
|
Gui, Add, Button, x+%Marginspace% w215 h50 gSendErrorLoggingThroughTelegram, Telegram Detailed Errorlog
|
|
|
|
Gui, Add, Button, x+%MarginSize% w215 h50 gSendErrorLoggingThroughTelegram, Telegram Detailed Errorlog
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Font, s8
|
|
|
|
Gui, Font, s10
|
|
|
|
Gui, Add, Button, x%StatusTextSecondRowXPos% y40 w270 h40 Center gCopyPostToClipboard, Copy Post To Clipboard `nFor Easy Pasting to Other Sites
|
|
|
|
Gui, Add, Button, x%StatusTextSecondRowXPos% y40 w270 h40 Center gCopyPostToClipboard, Copy Post To Clipboard
|
|
|
|
Gui, Add, Button, x%StatusTextSecondRowXPos% y+%marginspace% w270 h40 Center gCopyImageFilepathToClipboard, Copy Image Filepath To Clipboard
|
|
|
|
Gui, Add, Button, x%StatusTextSecondRowXPos% y+%MarginSize% w270 h40 Center gCopyImageFilepathToClipboard, Copy Image Filepath To Clipboard
|
|
|
|
Gui, Add, Button, x%StatusTextSecondRowXPos% y+%marginspace% h50 w270 h80 gTryFailedAgain, Try Failed Again
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
|
|
|
|
Gui, Add, Button, x%StatusTextSecondRowXPos% y+%MarginSize% w270 h40 gOpenGiteaPage, Report Bug
|
|
|
|
|
|
|
|
Gui, Add, Button, x%StatusTextSecondRowXPos% y+%MarginSize% w270 h80 gTryFailedAgain, Try Failed Again
|
|
|
|
|
|
|
|
|
|
|
|
/*Gui, Add, Button,x%MarginSpace% w%WebsiteButtonWidths% h%ButtonHeights% Center, PocketNet
|
|
|
|
|
|
|
|
Gui, Add, Edit, x+5 w%WebsiteStatusEditWidths% h%ButtonHeights%, %PocketNet%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Font, Bold
|
|
|
|
Gui, Font, Bold
|
|
|
|
; gui, add, text, x%ErrorSummaryLogSplitLineXPos% y20 h200 0x11 ; 0x11 is a "line" ; refer to here: https://autohotkey.com/board/topic/50910-draw-line-gui/
|
|
|
|
; gui, add, text, x%ErrorSummaryLogSplitLineXPos% y20 h200 0x11 ; 0x11 is a "line" ; refer to here: https://autohotkey.com/board/topic/50910-draw-line-gui/
|
|
|
|
Gui, Add, Text, x%ErrorSummaryLogXPos% y%MarginSpace% w%ErrorLogSummaryWidth% Center, Error Log Summary
|
|
|
|
Gui, Add, Text, x%ErrorSummaryLogXPos% y%MarginSize% w%ErrorLogSummaryWidth% Center, Error Log Summary
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Font, Normal
|
|
|
|
Gui, Font, s10
|
|
|
|
Gui, Font, s10
|
|
|
|
Gui, Add, Edit, x%ErrorSummaryLogXPos% y+%MarginSpace% w%ErrorLogSummaryWidth% h%ErrorLogSummaryHeight%, %ErrorLogVar%
|
|
|
|
Gui, Add, Edit, x%ErrorSummaryLogXPos% y+%MarginSize% w%ErrorLogSummaryWidth% h%ErrorLogSummaryHeight%, %ErrorLogVar%
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
Gui, Font, s%GUINormalFontSize%
|
|
|
|
|
|
|
|
|
|
|
|
gui, font, s6
|
|
|
|
gui, font, s6
|
|
|
|
Gui, Add, StatusBar,, Total Posts Posted: %TotalPostsPosted% | Run Time: %ScriptRunTime% Seconds
|
|
|
|
Gui, Add, StatusBar,, Total Posts Posted: %TotalPostsPosted% | Run Time: %ScriptRunTime% Seconds
|
|
|
|
|
|
|
|
|
|
|
|
Gui, Show,, %FullScriptName% - Post Results
|
|
|
|
; if(SaveGUIPosition)
|
|
|
|
|
|
|
|
Gui, Show, x%XPosition% y%YPosition%, %FullScriptName% - Post Results
|
|
|
|
|
|
|
|
; else,
|
|
|
|
|
|
|
|
; Gui, Show,, %FullScriptName% - Post Results
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SaveCurrentChromeVersionToIniFile()
|
|
|
|
SaveCurrentChromeVersionToIniFile()
|
|
|
@ -1067,53 +1022,6 @@ AddToTotalRunTime()
|
|
|
|
|
|
|
|
|
|
|
|
Return
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
ActivateParlerTab:
|
|
|
|
|
|
|
|
DevModeMsgBox("activating")
|
|
|
|
|
|
|
|
DevModeMsgBox(ParlerTabURL)
|
|
|
|
|
|
|
|
; FindAndActivateTab(ParlerTabURL)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SendErrorLoggingThroughTelegram:
|
|
|
|
|
|
|
|
Message = Uploading Errorlog to FDRBotTesting Telegram Server.
|
|
|
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; ErrorLoggingFilePath := VideoFolderDir . "\" . "ErrorLogging.txt"
|
|
|
|
|
|
|
|
; Msgbox % "ErrorLoggingFilePath: " ErrorLoggingFilePath
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Credentials to FDRBotTesting Channel
|
|
|
|
|
|
|
|
ELTelegramBotToken=1422687468:AAEzdzkck5PhgOG687cEn1cChp5cJFodjVM
|
|
|
|
|
|
|
|
ELTelegramBotChatID=-1001460795978
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; DevModeMsgBox(ErrorLoggingFilePath)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Status := SendTelegramFile(ELTelegramBotToken, ELTelegramBotChatID, ErrorLoggingFilePath, caption := "" )
|
|
|
|
|
|
|
|
if(InStr(Status, "error_code")){
|
|
|
|
|
|
|
|
Message = Telegram Post Failed due to an API Issue. Error was saved to ErrorLogging file. Please send it to Yuriy.
|
|
|
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; SaveOrPostProgress(Message:=Status,PostType:=",ErrorLoggingTextFile")
|
|
|
|
|
|
|
|
Message = Telegram Error: %Status%
|
|
|
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; msgbox, 4096, Error!, %Message%
|
|
|
|
|
|
|
|
ToolTip
|
|
|
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
ToolTip
|
|
|
|
|
|
|
|
Message = Errorlog was successfully uploaded to the FDRBotTesting Telegram Server.`nThank You!
|
|
|
|
|
|
|
|
msgbox, 4096, Success!, %Message%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Clipboard := ErrorLoggingFilePath
|
|
|
|
|
|
|
|
; Message = %ErrorLoggingFilePath% `n`nwas copied to the clipboard for easy attachment
|
|
|
|
|
|
|
|
; SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
; msgbox, 4096, Filepath Copied to Clipboard, %ErrorLoggingFilePath%`n`nwas copied to the clipboard for easy attachment.
|
|
|
|
|
|
|
|
Return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CopyErrorLoggingFilepath:
|
|
|
|
CopyErrorLoggingFilepath:
|
|
|
|
; Msgbox % "ErrorLoggingFilePath: " ErrorLoggingFilePath
|
|
|
|
; Msgbox % "ErrorLoggingFilePath: " ErrorLoggingFilePath
|
|
|
@ -1163,6 +1071,11 @@ Return
|
|
|
|
;------------------------------------------------
|
|
|
|
;------------------------------------------------
|
|
|
|
#include %A_ScriptDir%\Modules\Post-To-LinkedIn.ahk
|
|
|
|
#include %A_ScriptDir%\Modules\Post-To-LinkedIn.ahk
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Tumblr
|
|
|
|
|
|
|
|
;------------------------------------------------
|
|
|
|
|
|
|
|
#include %A_ScriptDir%\Modules\Post-To-Tumblr.ahk
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Minds
|
|
|
|
; Minds
|
|
|
|
;------------------------------------------------
|
|
|
|
;------------------------------------------------
|
|
|
|
#include %A_ScriptDir%\Modules\Post-To-Minds.ahk
|
|
|
|
#include %A_ScriptDir%\Modules\Post-To-Minds.ahk
|
|
|
@ -1202,3 +1115,6 @@ Return
|
|
|
|
; Misc Functions
|
|
|
|
; Misc Functions
|
|
|
|
;------------------------------------------------
|
|
|
|
;------------------------------------------------
|
|
|
|
#include %A_ScriptDir%\Modules\Miscellaneous-Functions.ahk
|
|
|
|
#include %A_ScriptDir%\Modules\Miscellaneous-Functions.ahk
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; used by update checker and paste from clipboard
|
|
|
|
|
|
|
|
#include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\Shared-GoTos.ahk
|
|
|
|