用这个api<br><br>mouse_event(MOUSEEVENTF_MOVE,i,i,0,0);<br><br>在from加timer1控件<br>procedure TForm1.Timer1Timer(Sender: TObject);<br>var<br> posx,posy:integer;<br>begin<br> posx:=....<br> posy:=....<br>mouse_event(MOUSEEVENTF_MOVE,posx,posy,0,0);<br><br>end;