J
jjqqw
Unregistered / Unconfirmed
GUEST, unregistred user!
如题 <br>我的代码问题出在什么地方?<br>procedure TForm1.Timer1Timer(Sender: TObject);<br>var<br> s:integer;<br> po:TPoint;<br> // Recta:TRect;<br>begin<br> // showmessage('hi');<br> Timer1.Interval:=TrackBar1.Position;<br> GetCursorPos(po);<br> for s:= 0 to strtoint(edit1.Text) -1 do<br> mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);<br> mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);<br> edit1.Text:=inttostr(strtoint(edit1.Text)-1);<br> // SetCursorPos(po.X,po.Y);<br>end;