|
|
|
@ -37,21 +37,22 @@ CheckForUpdates(GitReleasesAPIURL){
|
|
|
|
|
|
|
|
|
|
UpdateVersionNumber := parsed.1.name
|
|
|
|
|
|
|
|
|
|
; DevModeMsgBox(UpdateVersionNumber)
|
|
|
|
|
Message = UpdateVersionNumber: %UpdateVersionNumber%
|
|
|
|
|
DevModeMsgBox(Message)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(ScriptVersion = UpdateVersionNumber OR ScriptVersion > UpdateVersionNumber){
|
|
|
|
|
ToolTip
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
else, {
|
|
|
|
|
ToolTip
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
else, {
|
|
|
|
|
UpdateAvailable := 1
|
|
|
|
|
; msgbox, update found!
|
|
|
|
|
Message = Program Update Found
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="ErrorLoggingTextFile")
|
|
|
|
|
; IniWrite, 1, %SettingsIniFilepath%, %ScriptSettingsSection%, UpdateAvailable
|
|
|
|
|
; ToolTip
|
|
|
|
|
return
|
|
|
|
|
return 1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -153,11 +154,11 @@ TakeScreenshotOfPage(SaveFilepath := ""){
|
|
|
|
|
; sleep, 5000
|
|
|
|
|
|
|
|
|
|
if(SaveFilepath = ""){
|
|
|
|
|
SaveFilepath := ErrorLoggingDirectory
|
|
|
|
|
}
|
|
|
|
|
SaveFilepath := ErrorLoggingDirectory
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
; if(!FileExist(SaveFilepath))
|
|
|
|
|
FileCreateDir, %SaveFilepath%
|
|
|
|
|
; if(!FileExist(SaveFilepath))
|
|
|
|
|
FileCreateDir, %SaveFilepath%
|
|
|
|
|
|
|
|
|
|
/* if(!TakeScreenshotsOfErrors)
|
|
|
|
|
Return
|
|
|
|
@ -969,14 +970,14 @@ ActivateChromeTab(URL){
|
|
|
|
|
|
|
|
|
|
; NumberOfTabLoops := Driver.Windows.Count + 2
|
|
|
|
|
loop % NumberOfTabActivationLoops { ; loop through tabs to find matching tab
|
|
|
|
|
try driver.SwitchToNextWindow()
|
|
|
|
|
try driver.SwitchToNextWindow()
|
|
|
|
|
|
|
|
|
|
; sleep, 1000
|
|
|
|
|
; msgbox, looping through tabs
|
|
|
|
|
try CurrentTabTitle := driver.window.title
|
|
|
|
|
try CurrentTabURL := driver.Url
|
|
|
|
|
; sleep, 1000
|
|
|
|
|
; msgbox, looping through tabs
|
|
|
|
|
try CurrentTabTitle := driver.window.title
|
|
|
|
|
try CurrentTabURL := driver.Url
|
|
|
|
|
|
|
|
|
|
if(InStr(CurrentTabURL, URLBase)){
|
|
|
|
|
if(InStr(CurrentTabURL, URLBase)){
|
|
|
|
|
|
|
|
|
|
Message = Found Tab:.`n%CurrentTabTitle% = %PageTitle%`n%CurrentTabURL% = %URLBase%
|
|
|
|
|
DevModeMsgBox(message)
|
|
|
|
|