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