View Full Version : Reflect.Mouse.Move(point and stuff, MouseSpeed);
Keelijh
01-20-2016, 04:53 AM
Reflect.Mouse.Move(point and stuff, MouseSpeed);
- A function which takes in a point, randomizes such point, and alters the mouse speed for the duration of the function.
Because I am tried of copy and pasting the Reflect.MouseSpeed global.. :=)
One Kid
01-20-2016, 09:04 PM
Reflect.Mouse.Move(point and stuff, MouseSpeed);
- A function which takes in a point, randomizes such point, and alters the mouse speed for the duration of the function.
Because I am tried of copy and pasting the Reflect.MouseSpeed global.. :=)
Well if you want to randomize the point then it is best to use a TBox.
procedure CustMouseMove(box:TBox; Speed:Integer);
var
pt:TPoint;
begin
Reflect.MouseSpeed := Speed;
pt.x := RandomRange(box.X1, box.X2);
pt.y := RandomRange(box.Y1, box.Y2);
Reflect.Mouse.Move(pt, 0, 0);
Reflect.MouseSpeed := 20;
end;
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.