NEWS里抄一段给你,仿真EDIT1的鼠标双击<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;