两个 不同 的应用程序 其中一个应用程序发消息: hMain:=FindWindow(nil, PChar('K9测试系统')); if hMain = NULL then showmessage('Can not find Main Window!') else begin hChild:=FindWindowEx(hMain,0,PChar('TButton'),PChar('Button1')); if hChild = NULL then showmessage('Can not find Button1!') else begin SendMessage(hChild,WM_LBUTTONDOWN,0,0); SendMessage(hChild,WM_LBUTTONUP,0,0); end; end;为什么 没有触发 另外一各应用程序上面的 按钮的 Click 事件 ? 请 高手 牛人们 指教了!
hMain:=FindWindow(nil, PChar('K9测试系统')); if hMain = NULL then
showmessage('Can not find Main Window!')
else
begin
hChild:=FindWindowEx(hMain,0,PChar('TButton'),PChar('Button1'));
if hChild = NULL then
showmessage('Can not find Button1!')
else
begin
SendMessage(hChild,WM_LBUTTONDOWN,0,0);
SendMessage(hChild,WM_LBUTTONUP,0,0);
end;
end;为什么 没有触发 另外一各应用程序上面的 按钮的 Click 事件 ?
请 高手 牛人们 指教了!