procedure TForm1.Button1Click(Sender: TObject);<br>var Point:TPoint;<br>begin<br> GetCursorPos(Point);<br> Mouse_Event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);<br> Mouse_Event(MOUSEEVENTF_LEFTUP,0,0,0,0);<br> SetCursorPos(Point.X + 100, Point.Y + 10);//改为浏览器内的按扭的X,Y<br> Mouse_Event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);<br> Mouse_Event(MOUSEEVENTF_LEFTUP,0,0,0,0);<br>end;