|
|
|
@ -135,12 +135,12 @@ CreateArrayOfChromeTabs() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Message = Creating an Array of All Chrome Tabs`n(Sometimes might get stuck for a short while if there is something loading in a tab)
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile")
|
|
|
|
|
|
|
|
|
|
; TooltipThis(Message)
|
|
|
|
|
|
|
|
|
|
Message = Total Times looping through tabs: %TotalTabLoops%
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
Message = Total Times looping through tabs to create Chrome Tabs Array: %TotalTabLoops%
|
|
|
|
|
SaveOrPostProgress(Message,PostType:="ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
Loop % TotalTabLoops {
|
|
|
|
|
|
|
|
|
@ -157,7 +157,7 @@ CreateArrayOfChromeTabs() {
|
|
|
|
|
; exit after looping through 1 tab, if only 1 tab found in count
|
|
|
|
|
if(TotalTabsFound = 1 AND A_index > TotalTabsFound){
|
|
|
|
|
Message = Exiting Early after 1 loop. Only 1 tab found
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
; DevModeMsgBox(message)
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
@ -260,6 +260,9 @@ NavigateFromBaseURLTo(URL,PageTitle := "TodoDeleteme"){
|
|
|
|
|
; extract Base URL from Full URL
|
|
|
|
|
URLBase := ExtractBaseURL(URL)
|
|
|
|
|
|
|
|
|
|
Message = Checking for URLBase: %URLBase% within ChromeTabsURLArray
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; if URLBase is NOT a substring within any of the values in the array
|
|
|
|
|
if(!HasSubstringVal(ChromeTabsURLArray, URLBase))
|
|
|
|
|