同意楼上;例如模拟鼠标双击 :<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br> pt: TPoint;<br>begin<br> pt:= edit1.ClientToScreen( Point( 4,4 ));<br> SetCursorPos( pt.x, pt.y );<br> mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );<br> mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );<br> mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );<br> mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );<br>end;<br>//////////////////////////////<br>SendMessage(Form1.Handle,WM_LBUTTONDBLCLK,0,0);