Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
End the process with a hotkey
#1
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. Smile

Macro Macro4
Code:
Copy      Help
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
#2
case 401
DT_Cancel hDlg
#3
Thanks for your help Heart


Forum Jump:


Users browsing this thread: 1 Guest(s)