FindWindow() 主窗体handle<br>FindWindowEX() 子控件handle<br>SendMessage() 发送文本,按下按键..<br>简单.研究研究便知道了.<br>例程这里有,比如说你net send xxx<br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br> Handle,HB:THandle;<br> Buf: array[0..1024] of Char;<br>begin<br> Handle:=FindWindow(nil,'信使服务 ');//注意,后面有一个空格<br> HB:=FinWindowEX(Handle,0,'button','确定');<br> Handle:=FindWindowEX(Handle,0,'static',nil);<br> SendMessage(Handle, WM_GETTEXT, 1024, Integer(@Buf));<br> Memo1.Text:=buf;<br> SendMesssage(HB, BM_CLICK ,0,0);<br> SendMesssage(HB, BM_CLICK ,0,0);<br> end;<br><br>就这么个意思.<br>