Results 1 to 3 of 3

Thread: Why doesnt my mouse move?

  1. #1
    Join Date
    Mar 2017
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Why doesnt my mouse move?

    So, my mouse doesnt move to x and y and idk whats wrong
    my code:
    program moneybot;
    var
    x, y, color, tolerance, x1, y1, x2, y2: integer;
    procedure steal();
    begin
    color := 10526892;
    tolerance := 15;
    x1 := 662;
    y1 := 433;
    x2 := 683;
    y2 := 442;
    if (findcolortolerance(x, y, color, x1, y1, x2, y2, tolerance)) then
    begin
    movemouse (x, y);
    clickmouse (x, y, mouse_left);
    end
    end
    procedure emptybag();
    begin
    end
    procedure logout();
    begin
    end

  2. #2
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    Because you don't have an execution block, so you can't call any of your user-defined procedures
    try this:
    Simba Code:
    program moneybot;

    var
      x, y, color, tolerance, x1, y1, x2, y2: integer;

    procedure steal();
    begin
      color := 10526892;
      tolerance := 15;
      x1 := 662;
      y1 := 433;
      x2 := 683;
      y2 := 442;
      if (findcolortolerance(x, y, color, x1, y1, x2, y2, tolerance)) then
      begin
        movemouse(x, y);
        clickmouse(x, y, mouse_left);
      end
    end

    procedure emptybag();
    begin
    end

    procedure logout();
    begin
    end

    begin
      steal();
    end.

    https://villavu.com/forum/showthread.php?t=109161

  3. #3
    Join Date
    Mar 2017
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    thanks

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
  •