Results 1 to 9 of 9

Thread: Random question

  1. #1
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Random question

    Ok this is not out of a real script or my real procedures just made up for the purpose of this question. Lets say theres two dots of the color:287.
    Theres one on the right of the screen and one on the left.
    So lets say this is your procedure:
    SCAR Code:
    Procedure Click;
    Begin
    if findcolor(287 blah) Then
    Begin
    Mouse(x, y, 5, 5, True);
    End;
    End;
    and then lets say that is clicks the color to the right that is 287 but you want it to click the color to the left.
    is there anything that you can do to make it click the left color?

    Thanks in advance.
    ~Allthatisman

  2. #2
    Join Date
    Sep 2006
    Location
    include srl/srl.scar ( aussie)
    Posts
    2,875
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes


    FindColor(X,Y)

    Mouse(x - 10 , 7)

  3. #3
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ?? that doesn't make any since...Could you explain it a bit better please.

  4. #4
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It just means it finds the color you are looking for, then clicks 10 pixels to the left
    Project: Welcome To Rainbow

  5. #5
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    what if the dot isn't 10 pixels to the left?

  6. #6
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    If you know the area, when you input the x1, y1, x2, y2 Change those Accordingly.

    Or, you could do FindColorsTolerance then sort the resultant TPA from the upper left side, taking the closest one as the left-hand point.

    Hope I helped
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  7. #7
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah i think i get it now

  8. #8
    Join Date
    Dec 2006
    Location
    Canada, BC
    Posts
    728
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh k man um in reality SCAR works from left to right and up to down does it not? i mean i did a test in paint once, made a script to color in a box and it worked left to right, then when the row was done moved down a colomn and worked left to right again.
    no what id sudgest is use a Tbox.. i think that would work. i actualy dont know how to use them but ive seen other people use them and i think what it does is pretty much find the color within a set of coordinates so you could probably look it up, maby type "Tbox" into the surch SRL fourums thing. so you would make the box around the object that you wanna click on. hope i helped pluss i love your name hahaha so manly
    Lance. Da. Pants.

  9. #9
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol i'll look up the tbox thing thanks for the idea, and my name is 1337 =D

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
  •