Results 1 to 2 of 2

Thread: Reflect.Mouse.Move(point and stuff, MouseSpeed);

  1. #1
    Join Date
    Dec 2015
    Location
    where do you live!
    Posts
    30
    Mentioned
    2 Post(s)
    Quoted
    13 Post(s)

    Default Reflect.Mouse.Move(point and stuff, MouseSpeed);

    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.. :=)
    Last edited by Keelijh; 01-20-2016 at 04:55 AM. Reason: clarification

  2. #2
    Join Date
    Mar 2012
    Posts
    107
    Mentioned
    2 Post(s)
    Quoted
    49 Post(s)

    Default

    Quote Originally Posted by Keelijh View Post
    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.

    Simba Code:
    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;

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •