ginsonic
asked on
Animated movement of my cursor
I know how can I move my mouse, but I wish to create an animated movement and not just a jump to the new position.
Can give me some codes for how can I move animated (step by step )the cursor from Point1 to Point2?
Nick
Can give me some codes for how can I move animated (step by step )the cursor from Point1 to Point2?
Nick
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Slick812,
Can you help me to do same work without a timmer ?
Alike While ...
Anothers 100 points for that.
Can you help me to do same work without a timmer ?
Alike While ...
Anothers 100 points for that.
procedure TForm1.Button1Click(Sender
var
p : Tpoint;
I : Integer;
stepx, Stepy : Integer;
begin
getcursorpos(p);
setcursorPos(0,0);
stepx := screen.width div 250;
stepy := screen.height div 250;
for i := 1 to 250 do
setcursorpos(stepx*i,stepy
setcursorpos(p.x,p.y);
end;
meikl ;-)