YoHoJo
2011-12-01 14:44:33
I'm using http://villavu.com/forum/showthread.php?t=3197 to keylog myself but it doesn't record mouse movements.
Can someone either link me to, or write a simple script that will writeln or save to file all of my mouse movements and clicks including left/right click and coordiantes please?
What is IsMouseButtonDown(1)/2 which is left/right?
How do I make it so it doesn't writeln the mousepos if my mouse hasn't moved?
Currently it spams mousepos even if mouse hasn't moved, tried to do it but failed
1 is left click
2 is right click
Can someone either link me to, or write a simple script that will writeln or save to file all of my mouse movements and clicks including left/right click and coordiantes please?
What is IsMouseButtonDown(1)/2 which is left/right?
How do I make it so it doesn't writeln the mousepos if my mouse hasn't moved?
Currently it spams mousepos even if mouse hasn't moved, tried to do it but failed
program new;
var x,y, q, w:Integer;
begin
repeat
If x<>w Then
Begin
GetMousePos(x,y);
Writeln(IntToStr(x) + ',' + IntToStr(y));
End;
GetMousePos(q,w);
If IsMouseButtonDown(1) Then
Writeln('MouseDown 1 ');
If IsMouseButtonDown(2) Then
Writeln('MouseDown 2');
Until(false)
end. 1 is left click
2 is right click