Compare commits
16 Commits
6be4fac939
...
2.90
| Author | SHA1 | Date | |
|---|---|---|---|
|
d5edbc058c
|
|||
|
f70498afce
|
|||
|
|
a3f16aa6f2 | ||
|
982f857640
|
|||
|
|
0597c90144 | ||
|
|
5703a896ff | ||
|
9b506a8f73
|
|||
|
|
1880170b07 | ||
|
|
09c9dbd485 | ||
|
|
5492130564 | ||
|
|
5ba8412f18 | ||
|
|
7fd46a9913 | ||
|
|
9c93a35b37 | ||
|
17cc313f83
|
|||
|
|
bde745f6e2 | ||
|
|
108baea92e |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -27,3 +27,4 @@ Compile Scripts to EXE.ahk
|
||||
Freedomain Video Uploader.exe
|
||||
Lib/LBRY Process Killer.exe
|
||||
Lib/chrome-win64
|
||||
Lib/Version.ini
|
||||
2
.gitmodules
vendored
2
.gitmodules
vendored
@@ -1,3 +1,3 @@
|
||||
[submodule "Lib/Freedomain-Posters-Shared-Functions"]
|
||||
path = Lib/Freedomain-Posters-Shared-Functions
|
||||
url = https://git.freedomainplaylists.com/yuriy/Freedomain-Posters-Shared-Functions.git
|
||||
url = https://freedomain.dev/yuriy/posters-shared-functions.git
|
||||
|
||||
@@ -14,29 +14,24 @@ CoordMode, Mouse, Screen
|
||||
|
||||
;---Notes/Extra Info/#Includes------------------------------------------------------
|
||||
|
||||
; msgbox
|
||||
|
||||
;---VARIABLES-----------------------------------------------------------------------
|
||||
/*ScriptToCompile = %1%
|
||||
CompileType = %2% ; Testing OR Production
|
||||
if(CompileType = "")
|
||||
CompileType = Testing
|
||||
; Msgbox % "CompileType: " CompileType
|
||||
if(ScriptToCompile = "")
|
||||
ExitApp
|
||||
|
||||
|
||||
*/
|
||||
|
||||
; Msgbox % "ScriptToCompile: " ScriptToCompile
|
||||
ScriptToCompile = SocialMediaPoster
|
||||
; ScriptToCompile = ScriptUpdater
|
||||
;---MAIN SCRIPT---------------------------------------------------------------------
|
||||
|
||||
AHKFilepath = %A_ScriptDir%\Freedomain Social Media Poster.ahk
|
||||
Exefilepath = %A_ScriptDir%\Freedomain Social Media Poster.exe
|
||||
icopath = %A_ScriptDir%\Assets\FreedomainSMP.ico
|
||||
VersionIniFP = %A_ScriptDir%\Version.ini
|
||||
|
||||
|
||||
; Bump the version number in the version.ini file
|
||||
IniRead, VersionNumber, %VersionIniFP%, Social-Media-Poster, Version, 0.0 ; , Filename, Section, Key [, Default]
|
||||
VersionNumber += .01
|
||||
VersionNumber := SubStr(VersionNumber, 1, 4)
|
||||
; Msgbox % "VersionNumber: " VersionNumber
|
||||
IniWrite, %VersionNumber%, %VersionIniFP%,Social-Media-Poster, Version
|
||||
|
||||
|
||||
; Kill any active intances of the uploaders so the .exe file can be overwriten by the compilation
|
||||
process, close, Freedomain Social Media Poster.exe
|
||||
@@ -68,8 +63,6 @@ if(!FileExist(icopath)){
|
||||
run, %comspec% /c ""C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe" /in "%AHKFilepath%" /out "%exefilepath%" /icon "%icopath%""
|
||||
|
||||
|
||||
; OldNotify(ScriptToCompile,"Compiled Successfully",5)
|
||||
; sleep, 5000
|
||||
ExitApp
|
||||
|
||||
|
||||
|
||||
@@ -39,11 +39,9 @@ global UpdateVersionNumber
|
||||
#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\Zip.ahk
|
||||
#Include %A_ScriptDir%\Lib\Freedomain-Posters-Shared-Functions\URLDownloadToVar.ahk
|
||||
|
||||
|
||||
ScriptName = Freedomain Social Media Poster
|
||||
ScriptVersion = 2.86
|
||||
FullScriptName := ScriptName . " " . ScriptVersion
|
||||
|
||||
;---ToDo---
|
||||
;------------------------------------------------
|
||||
@@ -122,6 +120,14 @@ ChangelogIniFilepath := A_ScriptDir . "\Lib\FreedomScriptsChangelogINI"
|
||||
global ScriptSettingsSection
|
||||
ScriptSettingsSection := "SocialMediaPoster"
|
||||
|
||||
|
||||
FileInstall, Version.ini, %A_ScriptDir%\Lib\Version.ini, 1
|
||||
IniRead, ScriptVersion, %A_ScriptDir%\Lib\Version.ini,Social-Media-Poster, Version, 0.0
|
||||
ScriptName = Freedomain Social Media Poster
|
||||
FullScriptName := ScriptName . " " . ScriptVersion
|
||||
|
||||
|
||||
|
||||
;---General Info---
|
||||
;------------------------------------------------
|
||||
IniRead, TestingMode, %SettingsIniFilepath%, General, TestingMode, 0
|
||||
@@ -175,7 +181,7 @@ IniRead, TotalRunTime, %SettingsIniFilepath%, %ScriptSettingsSection%, TotalRunT
|
||||
;------------------------------------------------
|
||||
|
||||
global GitReleasesAPIURL
|
||||
GitReleasesAPIURL =https://git.freedomainplaylists.com/api/v1/repos/yuriy/Freedomain-Social-Media-Poster/releases
|
||||
GitReleasesAPIURL = https://freedomain.dev/api/v1/repos/yuriy/Freedomain-Social-Media-Poster/releases
|
||||
|
||||
; Save filepath of the current script to %SettingsIniFilepath% so it can be read and used by the script updater
|
||||
; Append informatio to ini files for Freedomain Program Updater
|
||||
@@ -266,7 +272,7 @@ if(StrLen(ErrorLoggingDirectory) > 5 and !InStr(ErrorLoggingDirectory, ".exe")){
|
||||
VideoURL := BitChuteURL
|
||||
|
||||
if(PodcastNumber != ""){
|
||||
PodcastURL := "https://fdrpodcasts.com/" . PodcastNumber . "`n"
|
||||
PodcastURL := "https://fdrpodcasts.com/" . PodcastNumber . "`n`n"
|
||||
}
|
||||
|
||||
; Append bitchute url to bottom of description
|
||||
@@ -300,7 +306,7 @@ if(StrLen(ErrorLoggingDirectory) > 5 and !InStr(ErrorLoggingDirectory, ".exe")){
|
||||
(Telegram != "")?(TelegramCheckStatus := 0) : (TelegramCheckStatus := 1)
|
||||
(Minds != "")?(MindsCheckStatus := 0) : (MindsCheckStatus := 1)
|
||||
(Gab != "")?(GabCheckStatus := 0) : (GabCheckStatus := 1)
|
||||
(MeWe != "")?(MeWeCheckStatus := 0) : (MeWeCheckStatus := 0) ; UNCHECKED ALWAYS as of 2022/04/08
|
||||
(MeWe != "")?(MeWeCheckStatus := 0) : (MeWeCheckStatus := 1)
|
||||
(Gettr != "")?(GettrCheckStatus := 0) : (GettrCheckStatus := 0)
|
||||
(Steemit != "")?(SteemitCheckStatus := 0) : (SteemitCheckStatus := 1)
|
||||
(Locals != "")?(LocalsCheckStatus := 0) : (LocalsCheckStatus := 1)
|
||||
@@ -667,7 +673,7 @@ run, "%A_ScriptFullPath%" "LastPost"
|
||||
Return
|
||||
|
||||
OpenGiteaPage:
|
||||
run, https://git.freedomainplaylists.com/yuriy/Freedomain_Social_Media_Poster
|
||||
run, https://freedomain.dev/yuriy/social-media-poster
|
||||
Return
|
||||
|
||||
CompileScript:
|
||||
|
||||
File diff suppressed because one or more lines are too long
Submodule Lib/Freedomain-Posters-Shared-Functions updated: 71b950c57f...e32fe026e9
@@ -148,47 +148,17 @@ if(Status = ""){
|
||||
DevModeMsgBox(Tag)
|
||||
; Tag = %Tag%
|
||||
Xpath = //input[@placeholder='Categories and tags']
|
||||
driver.FindElementByXPath(Xpath).SendKeys(Tag)
|
||||
driver.FindElementByXPath(Xpath).SendKeys(driver.Keys.ENTER)
|
||||
try driver.FindElementByXPath(Xpath).SendKeys(Tag)
|
||||
catch e {
|
||||
Message = Failed to input tag: %tag%
|
||||
SaveOrPostProgress(Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
||||
}
|
||||
|
||||
; driver.findElementsByClass("sminput").item[2].click()
|
||||
|
||||
; JsToExecute = document.querySelector("#text[placeholder='Add Categories/Tags']").value = "#%Tag%"
|
||||
; Status := JS_TryToExecute(JsToExecute)
|
||||
;
|
||||
; driver.SendKeys(driver.Keys.SPACE)
|
||||
;
|
||||
; JsToExecute = return document.querySelector("#text[placeholder='Add Categories/Tags']").value
|
||||
; Status := JS_TryToExecute(JsToExecute)
|
||||
try driver.FindElementByXPath(Xpath).SendKeys(driver.Keys.ENTER)
|
||||
|
||||
if(A_index = 5)
|
||||
Break
|
||||
|
||||
|
||||
/*Tag := TagsArray[A_Index]
|
||||
Tag := StrReplace(Tag, " ", "")
|
||||
; Tag = %Tag%
|
||||
Selenium_LoopToSendValueToXpath(Xpath:=Xpath,NumOfLoops:=5,SleepLength:=1000,SendKeysContent:=Tag)
|
||||
try driver.FindElementByXPath(Xpath).SendKeys(driver.Keys.Space)
|
||||
|
||||
*/
|
||||
; if(A_index = 8) ; Steemit only allows 8 tags
|
||||
; Break
|
||||
}
|
||||
; msgbox
|
||||
|
||||
/* Xpath = //div[@class='emojionearea-editor pastable']
|
||||
Status := Selenium_LoopToSendValueToXpath(Xpath:=Xpath,NumOfLoops:=3,SleepLength:=1000,StringTextContent:=PostTitleAndBody)
|
||||
if(Status){
|
||||
SaveOrPostProgress(Message:="Failed to Input Post",PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging")
|
||||
Return
|
||||
|
||||
; Send,
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
; Msgbox,4096,Pause!!,asdf
|
||||
|
||||
SaveOrPostProgress(Message:="Submitting Post",PostType:="Tooltip,ErrorLoggingTextFile")
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ Automated posting to the following social media platforms, utilizing either the
|
||||
- Open Chrome and type in `about::version` into the URL bar. The very first line will tell you what Chrome version you have
|
||||
- After downloading, extract “chromedriver_win32.zip” and move the extracted chromedriver.exe to: `C:\Program Files\SeleniumBasic\chromedriver.exe`
|
||||
- NOTE: The chromedriver will need to be re-downloaded whenever Chrome updates to keep up with API changes
|
||||
4. [Download the latest .exe of the Poster](https://git.zinchuk.xyz/yuriy/Freedomain-Social-Media-Poster/releases)
|
||||
4. [Download the latest .exe of the Poster](/yuriy/social-media-poster/releases)
|
||||
- When run, the poster will automatically create the folders and files it requires in the directory it's run from.
|
||||
|
||||
# Settings.ini
|
||||
|
||||
BIN
Settings.ini
Normal file
BIN
Settings.ini
Normal file
Binary file not shown.
2
Version.ini
Normal file
2
Version.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[Social-Media-Poster]
|
||||
Version=2.89
|
||||
Reference in New Issue
Block a user