m3gaman3g3nd
2012-01-06 18:49:12
SUPER SAIJAN MOUSE
(*
SSMouse
~~~~
moves the mouse to point. it has a random calling decision for a different combination of wait clicks
and misclicks to just and normal mouse.
uses / examples
SSMouse ( x , y , 5 , 5 , True ) ;
*)
procedure SSMouse ( mousex , mousey , ranx , rany : Integer ; button : variant ) ;
begin
case Random ( 12 ) of
0 : begin
MMouse ( mousex , mousey , ranx , rany ) ;
GetMousePos ( mousex , mousey ) ;
Wait ( 100 + Random ( 100 ) ) ;
Mouse ( mousex , mousey , 1 , 1 , Button ) ;
PickUpMouse ;
end ;
1 : begin
Mouse ( mousex , mousey , ranx , rany , Button ) ;
PickUpMouse ;
end ;
2 : begin
MMouse ( mousex , mousey , ranx , rany ) ;
GetMousePos ( mousex , mousey ) ;
Wait ( 50 + Random ( 50 ) ) ;
MissMouse ( mousex , mousey ) ;
Mouse ( mousex , mousey , 1 , 1 , Button ) ;
PickUpMouse ;
end ;
3 : begin
MMouse ( mousex , mousey , ranx , rany ) ;
GetMousePos ( mousex , mousey ) ;
Wait ( 100 + Random ( 100 ) ) ;
Mouse ( mousex , mousey , 1 , 1 , Button ) ;
end ;
4 : begin
Mouse ( mousex , mousey , ranx , rany , button ) ;
end;
5 : begin
MMouse ( mousex , mousey , ranx , rany ) ;
GetMousePos ( mousex , mousey ) ;
Wait ( 50 + Random ( 50 ) ) ;
MissMouse ( mousex , mousey ) ;
Mouse ( mousex , mousey , 1 , 1 , Button ) ;
end ;
6 : begin
Wait ( 50 + Random ( 50 ) ) ;
PickUpMouse ;
Wait ( 50 + Random ( 50 ) ) ;
MMouse ( mousex , mousey , ranx , rany ) ;
GetMousePos ( mousex , mousey ) ;
Wait ( 100 + Random ( 100 ) ) ;
Mouse ( mousex , mousey , 1 , 1 , Button ) ;
end ;
7 : begin
Wait ( 50 + Random ( 50 ) ) ;
PickUpMouse ;
Mouse ( mousex , mousey , ranx , rany , button ) ;
end ;
8 : begin
Wait ( 50 + Random ( 50) ) ;
PickUpMouse ;
Wait ( 50 + Random ( 50 ) ) ;
MMouse ( mousex , mousey , ranx , rany ) ;
GetMousePos ( mousex , mousey ) ;
Wait ( 50 + Random ( 50 ) ) ;
MissMouse ( mousex , mousey ) ;
Mouse ( mousex , mousey , 1 , 1 , Button ) ;
end ;
9 : begin
Wait ( 50 + Random ( 50 ) ) ;
PickUpMouse ;
Wait ( 50 + Random ( 50 ) ) ;
MMouse ( mousex , mousey , ranx , rany ) ;
GetMousePos ( mousex , mousey ) ;
Wait ( 100 + Random ( 100 ) ) ;
Mouse ( mousex , mousey , 1 , 1 , Button ) ;
PickUpMouse ;
end ;
10 : begin
Wait ( 50 + Random ( 50 ) ) ;
PickUpMouse ;
Mouse ( mousex , mousey , ranx , rany , button ) ;
PickUpMouse ;
end ;
11 : begin
Wait ( 50 + Random ( 50 ) ) ;
PickUpMouse ;
Wait ( 50 + Random ( 50 ) ) ;
MMouse ( mousex , mousey , ranx , rany ) ;
GetMousePos ( mousex , mousey ) ;
Wait ( 50 + Random ( 50 ) ) ;
MissMouse ( mousex , mousey ) ;
Mouse ( mousex , mousey , 1 , 1 , Button ) ;
PickUpMouse ;
end ;
end ;
end ;