D
dfwczy20
Unregistered / Unconfirmed
GUEST, unregistred user!
为什么2个按鼠标的命令都不能执行
var
i1:shortint;
procedure TForm1.Timer5Timer(Sender: TObject);
begin
inc(i1);
if i1=30 then
begin
windows.ClipCursor(0);
SetCursorPos(29,326);
mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);
mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
rect.Left:=100;
rect.Top:=100;
rect.Bottom:=200;
rect.Right:=200;
windows.ClipCursor(@rect);
end;
if i1=40 then
begin
windows.ClipCursor(0);
SetCursorPos(953,12);
mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);
mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
end;
Timer5.Enabled:=false;
end;
var
i1:shortint;
procedure TForm1.Timer5Timer(Sender: TObject);
begin
inc(i1);
if i1=30 then
begin
windows.ClipCursor(0);
SetCursorPos(29,326);
mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);
mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
rect.Left:=100;
rect.Top:=100;
rect.Bottom:=200;
rect.Right:=200;
windows.ClipCursor(@rect);
end;
if i1=40 then
begin
windows.ClipCursor(0);
SetCursorPos(953,12);
mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);
mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
end;
Timer5.Enabled:=false;
end;