Skip to content
⌘ NSIS Forum Archive

How to handle with the "Esc" key and close Icon (x icon) when using MessageBox

2 posts

hienvo#

How to handle with the "Esc" key and close Icon (x icon) when using MessageBox

Hi Everyone,

I am using message box : MessageBox MB_OK|TOP_MOST "Hello world" to display a message. I want to handle the case when user press the "Esc" key or click on the close icon (X icon) in the message box. I checked if any value return in the stack but I can't find one.

Please help me to to handle with this case.

Thanks
Hien vo
kichik#
You can't do that without a plug-in. No such plug-in exist that I know of, so you'll have to write your own.