Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- procedure CloseMessageBox(AWnd: HWND; AMsg: UINT; AIDEvent: UINT_PTR;
- ATicks: DWORD); stdcall;
- var
- Wnd: HWND;
- begin
- KillTimer(AWnd, AIDEvent);
- Wnd := GetActiveWindow;
- if IsWindow(Wnd) then
- PostMessage(Wnd, WM_CLOSE, 0, 0);
- end;
- // Coded by Appo //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement