From ed887d50455652489e355b5a10a0656b30e8c45b Mon Sep 17 00:00:00 2001 From: yuriy Date: Sun, 20 Aug 2023 00:42:10 -0400 Subject: [PATCH] updated error message on selenium no connect --- Selenium-Functions.ahk | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/Selenium-Functions.ahk b/Selenium-Functions.ahk index ff761d2..1b0d5fb 100644 --- a/Selenium-Functions.ahk +++ b/Selenium-Functions.ahk @@ -5,8 +5,6 @@ ShowSeleniumErrorMsgbox(){ - ; Clipboard := ChromeVersion - ; Msgbox % "Chromeversion: " Chromeversion IniRead, PreviousWorkingChromeVersion, Settings.ini, Misc, ChromeVersion, %A_Space% ; IniWrite, %ChromeVersion%, Settings.ini, Misc, ChromeVersion ; msgbox, failed to connect to Chrome for some reason. @@ -14,27 +12,23 @@ ShowSeleniumErrorMsgbox(){ ; SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,ErrorSummaryVar,DiscordErrorLogging") OnMessage(0x44, "OnMsgBoxChromeDriverFailed") - MsgBox 0x40043, Error, Failed to Connect to Chrome. `nMost likely issue is either Chrome has some sort of dialogue box open or ChromeDriver needs to be updated.`n`nClick "Reload" to reload the script to try again`nClick "ChromeDriver" to open up the ChromeDriver download page. `n`nClick "Instructions" to open up the instructions website for updating Chromedriver.`n`nPossibly Helpful Info:`nCurrent Chrome Version: %Chromeversion%Chrome Version of Last Successfull Upload: %PreviousWorkingChromeVersion% + MsgBox 0x40043, Error, Failed to Connect to Chrome. `nPossible Causes for this:`n1)One of your tabs is stuck loading/refreshing. (Try closing all tabs) `n2)Chrome has a dialogue box open `n3)ChromeDriver needs to be updated.`n`nClick "Reload" to reload the script to try again`nClick "ChromeDriver" to open up the ChromeDriver download page. `n`nClick "Instructions" to open up the instructions website for updating Chromedriver.`n`nPossibly Helpful Info:`nCurrent Chrome Version: %Chromeversion%Chrome Version of Last Successfull Upload: %PreviousWorkingChromeVersion% OnMessage(0x44, "") IfMsgBox Yes, { ; Reload script Reload - } Else IfMsgBox No, { - run, https://chromedriver.chromium.org/downloads - ExitApp - ; open chromedriver site - } Else IfMsgBox Cancel, { - URL = https://git.freedomainplaylists.com/yuriy/Freedomain-Social-Media-Poster#installation - run, %url% - } - ExitApp - + } + Else IfMsgBox No, { + run, https://chromedriver.chromium.org/downloads + ExitApp + ; open chromedriver site + } Else IfMsgBox Cancel, { + URL = https://git.freedomainplaylists.com/yuriy/Freedomain-Social-Media-Poster#installation + run, %url% } - -/* -*/ - + ExitApp +} ; -------------------------------Tab Navigation & Activation-------------------------------