Compare commits
4 Commits
3.53
...
b1a7fb3326
| Author | SHA1 | Date | |
|---|---|---|---|
| b1a7fb3326 | |||
|
e04a6b8d11
|
|||
| 199fbc1b78 | |||
| 9c52c6ec8d |
@@ -615,6 +615,13 @@ UpdateScript()
|
|||||||
; @todo: Save any changes made to the script before installing update
|
; @todo: Save any changes made to the script before installing update
|
||||||
Return
|
Return
|
||||||
|
|
||||||
|
|
||||||
|
PostToDiscordAndTelegram:
|
||||||
|
gosub, PostToDiscord
|
||||||
|
gosub, PostToTelegram
|
||||||
|
Return
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -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% 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% 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% gPostToTelegram vPostToTelegramButton, Post to Telegram
|
||||||
Gui, Add, Button, x+%MarginSize% w%ResultsScreenOneThirdsWidth% h%SecondaryButtonHeights% gStartSocialMediaPoster, Start Social Media Poster
|
Gui, Add, Button, x+%MarginSize% w%ResultsScreenOneThirdsWidth% h%SecondaryButtonHeights% gStartSocialMediaPoster, Start Social Media Poster
|
||||||
|
|
||||||
; Row 3
|
; Row 3
|
||||||
|
|||||||
@@ -122,10 +122,13 @@ if(Status){
|
|||||||
|
|
||||||
; make sure the "Notify Users" checkbox is selected
|
; make sure the "Notify Users" checkbox is selected
|
||||||
Xpath = (//input[contains(@name,'is_do_promo')])[1]
|
Xpath = (//input[contains(@name,'is_do_promo')])[1]
|
||||||
|
ClickXpath = //input[@name='is_do_promo']//parent::*
|
||||||
|
|
||||||
try, Status := driver.findelementbyxpath(Xpath).isSelected()
|
try, Status := driver.findelementbyxpath(Xpath).isSelected()
|
||||||
if(Status = 0){
|
if(Status = 0){
|
||||||
Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=1,SleepLength:=1000)
|
Status := Selenium_LoopToClickXpath(Xpath:=ClickXpath,NumOfLoops:=1,SleepLength:=1000)
|
||||||
|
|
||||||
|
; Check Again if the checkbox is checked ON (-1)
|
||||||
try, Status := driver.findelementbyxpath(Xpath).isSelected()
|
try, Status := driver.findelementbyxpath(Xpath).isSelected()
|
||||||
if(Status = "0"){
|
if(Status = "0"){
|
||||||
Message = Failed to Check ON the Notify Users Checkbox
|
Message = Failed to Check ON the Notify Users Checkbox
|
||||||
@@ -133,6 +136,8 @@ if(Status = 0){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DevModeMsgBox("notify user option checked?")
|
||||||
|
|
||||||
; check if the "Auto Submit Post" checkbox is checked, and if not check it
|
; check if the "Auto Submit Post" checkbox is checked, and if not check it
|
||||||
js = return document.querySelector("#autosubmit_enabled").checked;
|
js = return document.querySelector("#autosubmit_enabled").checked;
|
||||||
try AutoSubmitstatus := driver.executeScript(js)
|
try AutoSubmitstatus := driver.executeScript(js)
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile")
|
|||||||
|
|
||||||
|
|
||||||
SaveOrPostProgress(Message:="Video Links posted to #Videos Successfully.",PostType:="Tooltip,ErrorLoggingTextFile")
|
SaveOrPostProgress(Message:="Video Links posted to #Videos Successfully.",PostType:="Tooltip,ErrorLoggingTextFile")
|
||||||
GuiControl,, PostToDiscordButton, Discord - Posted Successfully
|
GuiControl,, PostToDiscordTelegramButton, Discord - Posted Successfully
|
||||||
|
|
||||||
sleep, 2000
|
sleep, 2000
|
||||||
ToolTip
|
ToolTip
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ else, {
|
|||||||
|
|
||||||
Message = Video Links Posted to Telegram Successfully
|
Message = Video Links Posted to Telegram Successfully
|
||||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile")
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile")
|
||||||
GuiControl,, PostToTelegramButton, Telegram - Posted Successfully
|
GuiControl,, PostToDiscordTelegramButton, Telegram - Posted Successfully
|
||||||
|
|
||||||
ToolTip
|
ToolTip
|
||||||
CurrentSite :=
|
CurrentSite :=
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
[Video-Uploader]
|
[Video-Uploader]
|
||||||
Version=3.51
|
Version=3.53
|
||||||
Name=Freedomain Video Uploader
|
Name=Freedomain Video Uploader
|
||||||
|
|||||||
Reference in New Issue
Block a user