procedure CloseGameSver();
var
H1, h2: HWND;
begin
H1 := FindWindow('TForm1', nil);
h2 := FindWindowEx(H1, , 'ConsoleWindowClass', nil);
// ShowMessage(Inttostr(h2));
SendMessage(h2, WM_CLOSE, , );
end;
相关文章
- FindWindowEx
- [原创]C#应用WindowsApi实现查找(FindWindowEx)文本框(TextBox、TextEdit)。
- Delphi 中 FindWindow 和 FindWindowEx 找到外部进程,然后发送消息(比如最大化)
- 获取其它进程窗口中的状态栏信息(FindWindowEx GetWindowThreadProcessId OpenPr
- 使用FindwindowEx()查找窗口中多个编辑控件句柄的问题
- MB_OK);}2 查找子窗口2.1 使用FindWindowEx()函数查找TCHAR szTitle[MAX_PAT
- WinAPI: FindWindow、FindWindowEx - 查找窗口