Results 1 to 3 of 3

Thread: It should work but doesn't

  1. #1
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default It should work but doesn't

    ok so im teaming with [JS] for a range mager not ganna say anymore but whenever i try range it just take the mouse in to the top left corner when it sets up range and the mousebox wasnt working either so i tried mouse and got the same thing it cant be my coords cause i looked at the cooreds it moves the mouse to around 0,4

    if u dont get what im talking about run it on your comp


    SCAR Code:
    procedure dorange;
    var
      x, y, x1, y1, tx, ty : integer;
    begin
      case Lowercase(Players[CurrentPlayer].Strings[1]) of
       { 'accurate': begin
                      y1 := 567; y:= 252; x1 := 633; x:= 292;
                    end;
        'rapid': begin
                   x := 652; x1:= 252; y := 719; y1:= 294;
                 end;
        'longrange':begin
                      x:= 569; x1:= 304; y := 633; y1:= 347;
                    end; wont work for w/e reason}

        'accurate': begin
                      x := 599; y:= 269;
                    end;
        'rapid': begin
                   x := 684; y := 275;
                 end;
        'longrange':begin
                      x:= 600; y :=325;
                     end;
      end;
      gametab(tab_Combat);
      //mousebox(x, y, x1, y1, 3);
      if GetColor(x, y) = 1974404 then
      begin
        writeln('Already selected');
        exit
      end else
      mouse(tx, ty, 0, 0, true);
    end;

  2. #2
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you dont set tx, or ty thus it moves to 0, 0 everytime. change it to Mouse(x, y, 0, 0, True) not tx, ty

  3. #3
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    ty lol i cant believe i over looked that

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
  •