Results 1 to 7 of 7

Thread: Need help finding & clicking color

  1. #1
    Join Date
    Jun 2007
    Posts
    52
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need help finding & clicking color

    My script isn't for RS. It's for the flash game "the impossible quiz" (found on addictinggames.com here's the link: The Impossible Quiz)

    On question 47, a red button randomly appears on the screen, and you can't see the cursor. If the cursor is on the button, It changes green.

    I need a procedure that will find the button, and click it.

    Thanks for any kind of help.

  2. #2
    Join Date
    Aug 2007
    Posts
    282
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    findcolor(x, y, color, firstx, firsty, secondx, secondy)
    Mouse(x, y, 0, 0, True)

  3. #3
    Join Date
    Jun 2007
    Posts
    52
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks

  4. #4
    Join Date
    Aug 2007
    Posts
    282
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yep, to use that you need to have SRL included though

  5. #5
    Join Date
    Jun 2007
    Location
    I'm not sure...
    Posts
    581
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Semicolons.
    If then statements.
    Also, change
    SCAR Code:
    Mouse(x,y,0,0,True);
    to
    SCAR Code:
    MMouse(x,y,0,0);
    Also, you want this after that
    SCAR Code:
    GetMousePos(x,y);
    If(GetColor(x,y,)={the green color})Then
      ClickMouse(x,y);
    ---------------------------------------------------------


    Pm me if you need any math functions made. Me = l0ving t3h mathz

    ---------------------------------------------------------

  6. #6
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    Yep, they answered it. But you might want to put MoveMouse(x+5, y+5); to make sure it gets the part of the button you can click.

    Also, you don't need to make MoveMouse MMouse, as it's not gonna ban you if you do. Also, no including SRL speeds up compile times.

    Oh yes, as you didn't search:

    NOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOB
    You, Jacobdm0, have been reported for being a NOOB.
    Your
    Current violations include
    1. Not Searching for
    This brings you to a new total of (3) Noob Points!

    For more information on Jacobdm0 please go Here.

    For more information from This database please go Here.

    For more information on The Noob Points System please go Here.

    For more information on Noobs please go Here.

    NOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOB


    You could avoid noobpoints later by trying to serach, thanks .
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  7. #7
    Join Date
    Aug 2007
    Posts
    282
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ya, i usually have to go back and edit in my semi-colons... bad habit

    If(GetColor(x,y,)={the green color})Then
    after the y there shouldnt be a comma

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Auto Color Clicking?
    By groog in forum OSR Help
    Replies: 5
    Last Post: 08-01-2008, 04:12 AM
  2. i need help with color clicking
    By ummmmm0k in forum OSR Help
    Replies: 2
    Last Post: 02-01-2008, 01:02 AM
  3. Finding a color and clicking it
    By Rriku113 in forum OSR Help
    Replies: 4
    Last Post: 01-26-2008, 09:12 AM

Posting Permissions

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