|
|
|
@ -236,12 +236,15 @@ NavigateFromBaseURLTo(URL,PageTitle := "TodoDeleteme"){
|
|
|
|
|
Message = Checking for URLBase: %URLBase% within ChromeTabsURLArray
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
; msgbox % HasSubstringVal(ChromeTabsURLArray, URLBase) . "`n`n is the status of URLbase in ChromeTabsURLArray"
|
|
|
|
|
|
|
|
|
|
; if URLBase is NOT a substring within any of the values in the array
|
|
|
|
|
if(!HasSubstringVal(ChromeTabsURLArray, URLBase))
|
|
|
|
|
{
|
|
|
|
|
; DevModeMsgBox("Creating new tab")
|
|
|
|
|
Message = Tab for %urlBase% does not exist. Creating new tab with URL: %URL%
|
|
|
|
|
Message = Chrome tab does not exist. Creating new tab ;. Creating new tab with URL: %URL%
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
try, run "%ChromeFilepath%" "%URL%"
|
|
|
|
|
catch e {
|
|
|
|
|
Message = Trying to Run Chrome with URL failed for some reason. Wrong Chrome filepath?
|
|
|
|
@ -263,7 +266,7 @@ NavigateFromBaseURLTo(URL,PageTitle := "TodoDeleteme"){
|
|
|
|
|
status := ActivateChromeTab(URLBase)
|
|
|
|
|
if(Status = "Failed"){
|
|
|
|
|
try currentURL := GetCurrentTabURLBase()
|
|
|
|
|
Message = Failed to switch active tab to %URLBase%. Current tab is: %currentURL%
|
|
|
|
|
Message = Failed to switch active tab to %URLBase%, currently on different site.
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
|
|
|
|
|
CheckForAlerts()
|
|
|
|
|