mrpickle
2009-05-07 07:11:35
A simple little program to display your current mouse location in the Debug box. Scar already detects this kinda stuff, and can store it itself. But maybe this can be used for fixing errors in scripts, such as screen shots of SMART autoer when they get stuck somewhere, and mouse position can be seen to aid debugging.
Well, if it's not useful, it's fun to have =D.
There's much room for more, but I'll wait till I learn more first =).
Well, if it's not useful, it's fun to have =D.
// ////////////
// Delay: is how long to wait (in milliseconds) before it returns to you
// another value of your mouse position
// ////////////
// Counter: is how many times you want it to run before it stops.
// ////////////
procedure ShowMousePosition(delay:integer; counter:integer);// By mrpickle
var x,y,count: integer;
begin
repeat
wait(delay);
getmousepos(x,y);
writeln (inttostr(x) + ' , ' + inttostr(y));
count := count +1
until (count = counter)
end;
begin
ShowMousePosition(250,10)
end.
There's much room for more, but I'll wait till I learn more first =).