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