simple color clicking script

Discussion in 'Script Requests' started by eeeaddict, Mar 25, 2010.

simple color clicking script
  1. Unread #1 - Mar 25, 2010 at 4:45 PM
  2. eeeaddict
    Joined:
    Mar 25, 2010
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0

    eeeaddict Newcomer

    simple color clicking script

    so I tried to make a script that clicks a color (the color code is 255) i tried but the script doesn't work so can anyone help?

    here is what i made

    Begin
    MonsterColor = 255; //

    var
    x,y:integer;
    Begin
    activateclient;
    Begin
    if findcolor(x,y,MonsterColor,0,0,640,480) then
    Begin
    HoldMouse(x,y,true);
    wait(100+random(50));
    ReleaseMouse(x,y,True);
    wait(5000+random(2000));
    End;
    if not (findcolor(x,y,MonsterColor,0,0,640,480)) then
    Writeln('Couldnot find color');
    terminatescript;
    End;
    End.
     
  3. Unread #2 - Mar 27, 2010 at 10:21 PM
  4. radiclerobby
    Joined:
    Mar 9, 2008
    Posts:
    720
    Referrals:
    0
    Sythe Gold:
    0

    radiclerobby Apprentice
    Banned

    simple color clicking script

    Code:
    var
    x,y:integer;
    
    const
    MonsterColor = 255; //
    
    begin
      activateclient;
      if findcolor(x,y,MonsterColor,0,0,640,480) then
      begin
        HoldMouse(x, y, true);
        wait(100+random(50));
        ReleaseMouse(x,y,True);
        wait(5000+random(2000));
      end;
      if not (findcolor(x,y,MonsterColor,0,0,640,480)) then
      writeln('Couldnot find color');
    end.

    this of course will only click once ;) i dont know if this was what you wanted i just fixed what you had in your script
     
  5. Unread #3 - Apr 7, 2010 at 11:16 AM
  6. AreUCertain
    Joined:
    Apr 5, 2010
    Posts:
    78
    Referrals:
    0
    Sythe Gold:
    0

    AreUCertain Member
    Banned

    simple color clicking script

    Did it work?
     
< Help with easy macro | >

Users viewing this thread
1 guest


 
 
Adblock breaks this site