Results 1 to 6 of 6

Thread: How to make it click a color

  1. #1
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How to make it click a color

    I need it to click a color its a dummy pwner it finds then the writes tht it finds it with the attack dummy procedur i left a gap thats where i need it to click it rep if u help
    SCAR Code:
    program DummyPwner;
    {.include SRL/SRL.scar}
    //Camera at highest point must be in the dummy training place.

    Procedure locatedummy;

    begin
    if(FindColorSpiral(x,y,8364218,12,18,472,324)) Then
    begin
    writeln('Found Dummy');
    end else
    writeln('Didnt Find Dummy');
    end;

    procedure attackdummy;
    begin

    end;
    begin
    SetupSRL;
    locatedummy;
    attackdummy;
    end.

  2. #2
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Mouse(x,y,ranx,rany,true) is SRL's command to click mouse.
    I also added it to look if there's up text "Dummy".
    SCAR Code:
    program DummyPwner;
    {.include SRL/SRL.scar}
    //Camera at highest point must be in the dummy training place.

    Procedure locatedummy;
    begin
    if(FindColorSpiral(x,y,8364218,MMX1,MMY1,MMX2,MMY2)) Then
    begin
    MMouse(x,y,0,0)
    If(IsUpText('ummy'))then
    writeln('Found Dummy');
    end else
    writeln('Didnt Find Dummy');
    end;

    procedure attackdummy;
    begin
    getmousepos(x,y)
    Mouse(x,y,2,2,True);
    end;

    begin
    SetupSRL;
    locatedummy;
    attackdummy;
    end.

  3. #3
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Does that click the mouse in a certain location or find the color then click?

    EDIT
    I dont want mouse lol i need it to click that certain color

  4. #4
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rudeboialex View Post
    Does that click the mouse in a certain location or find the color then click?

    EDIT
    ooo i understand now but how i do the Mouse thing i dont get it
    oops I forget to Movemouse on the color, look at the script again. Now it should find the dummy color, look if theres text "Dummy" and then click.

    And the mouse thing Mouse(x,y,ranx,rany,true) x and y are coordinates, ranx is random x pixels, and rany is random y pixels, it makes mouse move more randomly.

    If you want to know a good way to find objects there's FindObj(x,y,text,color,tolerance) in SRL.

  5. #5
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    getting confusing lol like youre ess minner it find auburys color i wanna find the dummy color

  6. #6
    Join Date
    Mar 2007
    Location
    UK
    Posts
    69
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    probably you mean, the color constant you use for your dummy IS SIMMILAR to other colors on map OR the definitions of your search box do not overlap the Co-Ordinates of the obj color. Try expanding definitions:

    FindColorSpiralTolerance(x,y,DummyColor,0,0,600,60 0,3)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. not click color. bit of help needed here
    By Prince in forum OSR Help
    Replies: 2
    Last Post: 02-22-2008, 09:15 PM
  2. Find A color And Click
    By atmmaster2 in forum Outdated Tutorials
    Replies: 23
    Last Post: 12-22-2007, 04:47 PM
  3. Click here if color is not equal to...
    By twobac in forum OSR Help
    Replies: 3
    Last Post: 02-15-2007, 07:50 PM

Posting Permissions

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