|
|
@ -148,47 +148,17 @@ if(Status = ""){
|
|
|
|
DevModeMsgBox(Tag)
|
|
|
|
DevModeMsgBox(Tag)
|
|
|
|
; Tag = %Tag%
|
|
|
|
; Tag = %Tag%
|
|
|
|
Xpath = //input[@placeholder='Categories and tags']
|
|
|
|
Xpath = //input[@placeholder='Categories and tags']
|
|
|
|
driver.FindElementByXPath(Xpath).SendKeys(Tag)
|
|
|
|
try driver.FindElementByXPath(Xpath).SendKeys(Tag)
|
|
|
|
driver.FindElementByXPath(Xpath).SendKeys(driver.Keys.ENTER)
|
|
|
|
catch e {
|
|
|
|
|
|
|
|
Message = Failed to input tag: %tag%
|
|
|
|
|
|
|
|
SaveOrPostProgress(Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
; driver.findElementsByClass("sminput").item[2].click()
|
|
|
|
try driver.FindElementByXPath(Xpath).SendKeys(driver.Keys.ENTER)
|
|
|
|
|
|
|
|
|
|
|
|
; 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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(A_index = 5)
|
|
|
|
if(A_index = 5)
|
|
|
|
Break
|
|
|
|
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")
|
|
|
|
SaveOrPostProgress(Message:="Submitting Post",PostType:="Tooltip,ErrorLoggingTextFile")
|
|
|
|
|
|
|
|
|
|
|
|