From ed307493b856b3b77078c9aaa4c1696704806965 Mon Sep 17 00:00:00 2001 From: Yuriy Date: Fri, 17 May 2024 18:40:09 -0400 Subject: [PATCH] renamed lib --- Shared-GoTos.ahk | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Shared-GoTos.ahk diff --git a/Shared-GoTos.ahk b/Shared-GoTos.ahk new file mode 100644 index 0000000..94f1b3f --- /dev/null +++ b/Shared-GoTos.ahk @@ -0,0 +1,28 @@ +; This #include needs to be at the bottom of the parent script + + +CheckForUpdates: +; The GUI buttons must have variable set to vUpdateAvailable and vChromeUpdateAvailable for button to get updated + +; The following variables need to be set in the parent script +; GitReleasesAPIURL +; ChromeFilepath + +Message = Checking for Updates +SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging") + + +if(CheckForUpdates(GitReleasesAPIURL)){ + GuiControl,,UpdateAvailable, Update Available! + +} + +if(CheckForChromeUpdates(ChromeFilepath)){ + GuiControl,,ChromeUpdateAvailable, Chrome Update Available! + ChromeUpdateAvailable := 1 +} +Return + + + +