how do I?
I know
CurrentPos:= Point(GetMousePos(x,y)); is wrong, what do I do.
got it!
Simba Code:
program new;
var x,y, q, w:Integer;
LastPos, CurrentPos:Tpoint;
begin
repeat
GetMousePos(x,y)
CurrentPos:= Point(x, y);
If CurrentPos.X <> LastPos.X Then
Begin
Writeln(IntToStr(x) + ',' + IntToStr(y));
End;
GetMousePos(q,w);
LastPos:= Point(q,w);
If IsMouseButtonDown(1) Then
Writeln('MouseDown 1 ');
If IsMouseButtonDown(2) Then
Writeln('MouseDown 2');
Until(false)
end.
E: Not working in some cases, any better way to do it, do I need to switch some lines to make it respond better?
E: Whatevas made another similar quick script, figured out what I wanted to.