formatting and cleanup
This commit is contained in:
@@ -310,13 +310,16 @@ DownloadLatestChromium(){
|
||||
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
||||
MsgBox 0x40,, %Message%
|
||||
|
||||
ChromeFilepath := ; clear out chromefilepath variable in case the path changed
|
||||
|
||||
ToolTip
|
||||
return
|
||||
}
|
||||
/*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
CheckForChromeUpdates(ChromeFilepath := ""){
|
||||
CheckForChromeUpdates(ChromeFilepath := ""){
|
||||
if(ChromeFilepath = "")
|
||||
ChromeFilepath := GetInstalledChromeFilepath()
|
||||
|
||||
@@ -330,10 +333,10 @@ DownloadLatestChromium(){
|
||||
else, Return 0
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
GetInstalledChromeFilepath(){
|
||||
GetInstalledChromeFilepath(){
|
||||
; ChromeFilepath is global variable
|
||||
|
||||
if(ChromeFilepath = ""){
|
||||
@@ -365,9 +368,9 @@ DownloadLatestChromium(){
|
||||
}
|
||||
ToolTip
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
GetInstalledChromeVersion(){
|
||||
GetInstalledChromeVersion(){
|
||||
|
||||
if(ChromeFilepath = ""){
|
||||
GetInstalledChromeFilepath()
|
||||
@@ -380,10 +383,10 @@ DownloadLatestChromium(){
|
||||
InstalledChromeVersion := StrReplace(InstalledChromeVersion, "`r") ; replace any newline characters that powershell returns
|
||||
|
||||
return InstalledChromeVersion
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
GetLatestChromeStableVersion(){
|
||||
GetLatestChromeStableVersion(){
|
||||
|
||||
; https://github.com/GoogleChromeLabs/chrome-for-testing#json-api-endpoints
|
||||
json_str := urldownloadtovar("https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions.json")
|
||||
@@ -400,10 +403,10 @@ DownloadLatestChromium(){
|
||||
}
|
||||
|
||||
return ChromeStableLatestVersion
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
GetDownloadURLOfChromeAndDriver(InstalledChromeVersion){
|
||||
GetDownloadURLOfChromeAndDriver(InstalledChromeVersion){
|
||||
; Will return the download URL of Chrome for Testing and Chrome Driver, seperated by a ||
|
||||
|
||||
; https://github.com/GoogleChromeLabs/chrome-for-testing#json-api-endpoints
|
||||
@@ -450,4 +453,4 @@ DownloadLatestChromium(){
|
||||
|
||||
URLS = %chromeDLURL64%||%chromedriverDLURL64%
|
||||
return URLS
|
||||
}
|
||||
}
|
||||
@@ -44,12 +44,10 @@ if(!status){
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Status := DownloadLatestChromium()
|
||||
if(Status)
|
||||
GuiControl,,ChromeUpdateAvailable, Chrome Up-to-Date
|
||||
|
||||
|
||||
Return
|
||||
/*
|
||||
*/
|
||||
@@ -65,7 +63,17 @@ if(A_GuiControl = "PasteClipboardToSMPTitle"){
|
||||
GuiControl,,PostTitle, %Clipboard%
|
||||
}
|
||||
|
||||
if(A_GuiControl = "PasteClipboardToFLSTitle"){
|
||||
GuiControl,,LivestreamTitle, %Clipboard%
|
||||
}
|
||||
|
||||
if(A_GuiControl = "PasteClipboardToFLSDescription"){
|
||||
GuiControl,,LivestreamDescription, %Clipboard%
|
||||
}
|
||||
|
||||
if(A_GuiControl = "PasteClipboardToFLSTags"){
|
||||
GuiControl,,LivestreamTags, %Clipboard%
|
||||
}
|
||||
|
||||
|
||||
Return
|
||||
Reference in New Issue
Block a user