Code: Select all
<+5:: Send, !{F4}
Code: Select all
<+5::
MsgBox, 4, AHK: Close Window, Close the active program?
IfMsgBox, No
Exit
Else
Send, !{F4}
return
After the MsgBox appears and clicked 'Yes', nothing happened, the 'Shut Down Windows' does not appear.
Your help is much appreciated.