It's got a few pop-up boxes that were just for debug & can be removed & recompiled, (Need Ahk installed to compile).
The EXE just runs, & the dialog boxes time out in a second or two.
CumulusShutdown.ahk Script below.
Complied Stadalone exe in the Attached zip.
Cheers
Phil.
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
if WinExist("ahk_exe CumulusMX.exe")
WinActivate ; Uses the last found window.
MsgBox, 1,"CMX Will Be Closed", Would you like to continue?,1
IfMsgBox Cancel
{
MsgBox,,"Cumulus Shutdow Utility" , "You pressed Cancel.",3
Return
}
IfMsgBox Ok
MsgBox, ,"Cumulus Shutdow Utility", "You pressed Ok.",3
else
{
MsgBox, ,"Cumulus Shutdow Utility", "Message Box Timed Out",1
Send ^c
WinWaitClose
MsgBox, ,"Cumulus Shutdow Utility","Cumulus Closed",3
Return
}