;Monitor & disable the 'No' button in the dialog box that prompts up when ;trying to close an unsaved file. #SingleInstance force #Persistent DetectHiddenWindows On SetTitleMatchMode 2 apptowatch=Microsoft Office Excel SetTimer, Disabler, 500 Return Disabler: IfWinActive, %apptowatch% ahk_class #32770 Control, Disable, , Button2 Return #p:: ;Temporarily enable the "no" button (10 sec.) SetTimer, Disabler, Off TrayTip,, Button enabled for 10 seconds., , 17 Sleep, 10000 SetTimer, Disabler, 500 Return