From 9c52c6ec8dce1981268efe1c0f5e199b1f68dbe8 Mon Sep 17 00:00:00 2001 From: yuriy Date: Fri, 11 Oct 2024 22:40:22 -0400 Subject: [PATCH] Merged Telegram and Discord buttons together. --- Freedomain Video Uploader.ahk | 7 +++++++ Modules/GUI-Main-Window.ahk | 4 ++-- Modules/Post-To-Discord.ahk | 2 +- Modules/Post-To-Telegram.ahk | 2 +- Version.ini | 2 +- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Freedomain Video Uploader.ahk b/Freedomain Video Uploader.ahk index d7e8810..40a3819 100644 --- a/Freedomain Video Uploader.ahk +++ b/Freedomain Video Uploader.ahk @@ -615,6 +615,13 @@ UpdateScript() ; @todo: Save any changes made to the script before installing update Return + +PostToDiscordAndTelegram: +gosub, PostToDiscord +gosub, PostToTelegram +Return + + /* */ diff --git a/Modules/GUI-Main-Window.ahk b/Modules/GUI-Main-Window.ahk index 44ecc82..dce3b79 100644 --- a/Modules/GUI-Main-Window.ahk +++ b/Modules/GUI-Main-Window.ahk @@ -461,8 +461,8 @@ Gui, Add, Button, x+%MarginSize% w%ResultsScreenOneThirdsWidth% h%SecondaryButto Gui, Add, Button, x+%MarginSize% w%ResultsScreenOneThirdsWidth% h%SecondaryButtonHeights% gRetryUpload, Try Failed Again -Gui, Add, Button, x%MarginSize% y+%MarginSize% w%ResultsScreenOneThirdsWidth% h%SecondaryButtonHeights% gPostToDiscord vPostToDiscordButton, Post to Discord -Gui, Add, Button, x+%MarginSize% w%ResultsScreenOneThirdsWidth% h%SecondaryButtonHeights% gPostToTelegram vPostToTelegramButton, Post to Telegram +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 diff --git a/Modules/Post-To-Discord.ahk b/Modules/Post-To-Discord.ahk index 4f8297b..44c01c4 100644 --- a/Modules/Post-To-Discord.ahk +++ b/Modules/Post-To-Discord.ahk @@ -96,7 +96,7 @@ SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile") SaveOrPostProgress(Message:="Video Links posted to #Videos Successfully.",PostType:="Tooltip,ErrorLoggingTextFile") -GuiControl,, PostToDiscordButton, Discord - Posted Successfully +GuiControl,, PostToDiscordTelegramButton, Discord - Posted Successfully sleep, 2000 ToolTip diff --git a/Modules/Post-To-Telegram.ahk b/Modules/Post-To-Telegram.ahk index 2869430..0365e3c 100644 --- a/Modules/Post-To-Telegram.ahk +++ b/Modules/Post-To-Telegram.ahk @@ -167,7 +167,7 @@ else, { Message = Video Links Posted to Telegram Successfully SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile") -GuiControl,, PostToTelegramButton, Telegram - Posted Successfully +GuiControl,, PostToDiscordTelegramButton, Telegram - Posted Successfully ToolTip CurrentSite := diff --git a/Version.ini b/Version.ini index e767451..0cc9d51 100644 --- a/Version.ini +++ b/Version.ini @@ -1,3 +1,3 @@ [Video-Uploader] -Version=3.51 +Version=3.52 Name=Freedomain Video Uploader