Cage
2015-05-27 12:50:05
Hello.
This is a very simple question, but since I am new to Pascal, I am having a hard time working it out.
I want to be able to use
How do I go about converting a simple X,Y coordinate to a point so I can insert it into the function? Thanks!
This is a very simple question, but since I am new to Pascal, I am having a hard time working it out.
I want to be able to use
SMART_DrawDots(TPoint); to model this mouse movement algorithm.procedure CustomMouseMove(X, Y: Integer);
var
RandomNumber: Integer;
begin
RandomNumber := Random(100);
if(RandomNumber <= 80) then
MMouse(X, Y, 28, 28) else
begin
MMouse(X, Y, 40, 40);
Writeln('Going Large');
end;
end; How do I go about converting a simple X,Y coordinate to a point so I can insert it into the function? Thanks!