|
|
@ -1,9 +1,24 @@
|
|
|
|
; Notes/Extra Info/#Includes
|
|
|
|
; Notes/Extra Info/#Includes
|
|
|
|
;------------------------------------------------
|
|
|
|
;------------------------------------------------
|
|
|
|
; Chrome Related Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Chrome Global Variables
|
|
|
|
|
|
|
|
;------------------------------------------------
|
|
|
|
|
|
|
|
; Chrome/Selenium
|
|
|
|
|
|
|
|
global ChromeFilepath
|
|
|
|
|
|
|
|
; Declare global variables here so they don't have to be declared in each script
|
|
|
|
|
|
|
|
global ChromeTabsURLArray
|
|
|
|
|
|
|
|
global DriverTitleArray
|
|
|
|
|
|
|
|
global LastWebsitePostURL
|
|
|
|
|
|
|
|
global CurrentTabURL
|
|
|
|
|
|
|
|
global URLOfLastErrorPage
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Chrome Related Functions
|
|
|
|
|
|
|
|
;------------------------------------------------
|
|
|
|
GetChromeFilepath(){
|
|
|
|
GetChromeFilepath(){
|
|
|
|
; ChromeFilepath is global variable
|
|
|
|
; ChromeFilepath is global variable
|
|
|
|
; Establish Variable with Filepath to be used throughout the script
|
|
|
|
; Establish Variable with Filepath to be used throughout the script
|
|
|
@ -12,6 +27,9 @@ GetChromeFilepath(){
|
|
|
|
|
|
|
|
|
|
|
|
if(FileExist(ChromePortableFilepath)){
|
|
|
|
if(FileExist(ChromePortableFilepath)){
|
|
|
|
ChromeFilepath := ChromePortableFilepath
|
|
|
|
ChromeFilepath := ChromePortableFilepath
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Message = Using Chromium Portable for Upload
|
|
|
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
if(FileExist("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"))
|
|
|
|
if(FileExist("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"))
|
|
|
|