Added functions from Social Media Poster Shared Functions file so SharedFunctions.ahk can be replaced by this submodule

main
Yuriy 2 years ago
parent b21b92da87
commit ad4565bdc7

3
.gitmodules vendored

@ -0,0 +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

@ -0,0 +1 @@
Subproject commit 694c440a6a89b0b84fee0c49370d95150667c7a9

@ -15,6 +15,7 @@ global CurrentTabURL
; #Include %A_ScriptDir%\RunCMD.ahk ; #Include %A_ScriptDir%\RunCMD.ahk
; @todo: add error checks for all winhttp requests.
DevModeMsgBox(Message){ DevModeMsgBox(Message){
@ -26,7 +27,7 @@ DevModeMsgBox(Message){
} }
CheckForUpdates(){ CheckForUpdates(GitReleasesAPIURL){
; msgbox, checking for updates ; msgbox, checking for updates
Message = Checking For Updates Message = Checking For Updates
SaveOrPostProgress(Message,PostType:="ErrorLoggingTextFile") SaveOrPostProgress(Message,PostType:="ErrorLoggingTextFile")
@ -174,6 +175,7 @@ TakeScreenshotOfPage(SaveFilepath := ""){
; -------------------------------TooltipThis------------------------------- ; -------------------------------TooltipThis-------------------------------
TooltipThis(String){ TooltipThis(String){
; msgbox
; Xposition := StrLen(String) ; Xposition := StrLen(String)
StringFirstLine := StrSplit(String, "`n") StringFirstLine := StrSplit(String, "`n")
StringFirstLine := StringFirstLine[1] StringFirstLine := StringFirstLine[1]
@ -922,6 +924,8 @@ if(TotalTabsFound = 1){
; / END OF FUNC ; / END OF FUNC
} }
/*
*/
InputFilePathIntoOpenWindow(Filepath){ InputFilePathIntoOpenWindow(Filepath){
; Msgbox % "Filepath: " Filepath ; Msgbox % "Filepath: " Filepath
Message = Waiting for "Open" window to appear to input filepath into Message = Waiting for "Open" window to appear to input filepath into
@ -966,7 +970,7 @@ if(TotalTabsFound = 1){
; -------------------------------NavigateFromBaseURLTo------------------------------- ; -------------------------------NavigateFromBaseURLTo-------------------------------
NavigateFromBaseURLTo(URL){ NavigateFromBaseURLTo(URL, Title:="REmoveMe"){
if(!DriverStatus){ ; if not connected to selenium chrome, then re-connect if(!DriverStatus){ ; if not connected to selenium chrome, then re-connect
Status := CheckSeleniumDriver() Status := CheckSeleniumDriver()
if(Status) if(Status)

Loading…
Cancel
Save