11-06-2018, 09:57 PM
Hello everyone, I want to implement a special function(Generate exe), that makes it impossible to close the window with the close button. I need to use the hotkey to close the window, but I don't know the code to close the window or end the process. I hope someone can help me, thanks in advance.
Macro Macro4

Macro Macro4
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog"
;END DIALOG
;DIALOG EDITOR: "" 0x2040701 "*" "" "" ""
if(!ShowDialog(dd &sub.DlgProc 0)) ret
#sub DlgProc
function# hDlg message wParam lParam
sel message
,case WM_INITDIALOG
,DT_SetAccelerators hDlg "401 CF1"
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,ret
,case IDCANCEL
,ret
,
,case 401
,;;;;Use the hotkey ctrl+F1 to close the window or end the process code
ret 1