From 0d596fd2d4db90a8967e6b018fd67bac63eaea43 Mon Sep 17 00:00:00 2001 From: David Daily Date: Thu, 13 Jan 2022 13:47:10 -0600 Subject: [PATCH] replace ugly CCMS link with Service Advisor link --- standalones/Mansol_Opener - standalone.ahk | 80 +++++++++++----------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/standalones/Mansol_Opener - standalone.ahk b/standalones/Mansol_Opener - standalone.ahk index 81e3e3e..2146d62 100644 --- a/standalones/Mansol_Opener - standalone.ahk +++ b/standalones/Mansol_Opener - standalone.ahk @@ -1,40 +1,40 @@ -#SingleInstance force - -; The exe this is compiled into has manual.ico set as its icon. - -!+S::gui() - -gui() -{ - static Number - static Hidden - - Gui, +AlwaysOnTop +ToolWindow - - Gui, Add, Edit, x2 y3 w78 h20 vNumber +Left, - Gui, Add, Button, x22 y43 w70 h20 Default vHidden, Ok - Gui, Add, Button, x81 y3 w17 h20 gHelp +Center, ? - Gui, Show, h28 w100, ManSol - GuiControl, Hide, Hidden - - Return - - ButtonOk: - Gui, submit ; I have no idea what the regex means any more... - If RegExMatch(Number, "[[:alpha:]]+") - run, % "http://serviceadvisor.deere.com/WebSA/manuals/" . Number - Else If RegExMatch(Number, "[[:digit:]]+") - run, % "https://ccms.deere.com/prweb/PRServletCustomAuth/ZDate_MgiNPn1ccL6O6pyBurDs0hjFQ8*/!STANDARD?pyActivity=SolutionsSnapStart&Action=showHarness&className=Deere-Int-Solr-Docs&Purpose=SolutionDescriptionNew&SolutionID=" . Number . "&Language=Default" - ExitApp -Return - - - Help: - Run, https://daviddaily.dev/david/d3k/wiki/ManSol - Return - - GuiClose: - GuiEscape: - Gui, Destroy - Return -} +#SingleInstance force + +; The exe this is compiled into has manual.ico set as its icon. + +!+S::gui() + +gui() +{ + static Number + static Hidden + + Gui, +AlwaysOnTop +ToolWindow + + Gui, Add, Edit, x2 y3 w78 h20 vNumber +Left, + Gui, Add, Button, x22 y43 w70 h20 Default vHidden, Ok + Gui, Add, Button, x81 y3 w17 h20 gHelp +Center, ? + Gui, Show, h28 w100, ManSol + GuiControl, Hide, Hidden + + Return + + ButtonOk: + Gui, submit ; I have no idea what the regex means any more... + If RegExMatch(Number, "[[:alpha:]]+") + run, % "http://serviceadvisor.deere.com/WebSA/manuals/" . Number + Else If RegExMatch(Number, "[[:digit:]]+") + run, % "https://serviceadvisor.deere.com/WebSA/solutions/en/" . Number + ExitApp +Return + + + Help: + Run, https://daviddaily.dev/david/d3k/wiki/ManSol + Return + + GuiClose: + GuiEscape: + Gui, Destroy + Return +}