Results 1 to 4 of 4

Thread: Click here if color is not equal to...

  1. #1
    Join Date
    Dec 2006
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Click here if color is not equal to...

    Hi I am stuck

    I have the following code and I want to amend it so that it will only click here if the color of this spot is not equal to a color?

    MouseFindFlag(460,110,1,-1);

    I thought an if statement would work but I dont know how.

    Any Help will be appreciated.


    ScarPreRelease 3.23 rev 80, Includes - Dev Rev 457

  2. #2
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    what are you using mousefindflag for?

    Can't you just do:
    SCAR Code:
    if (not(findcolor(x,y,color,xs,ys,xe,ye))) then
    Mouse(x,y,1,1,true);

  3. #3
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    or
    SCAR Code:
    Colorhere := GetColor(cx, cy);


    if not(GetColor(cx, cy) = Colorhere) then
    Mouse(x,y,1,1,true);
    Would this be better?

  4. #4
    Join Date
    Dec 2006
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you both for your replies, I will have a play tomorrow and see which I can get to work. thanks

    ScarPreRelease 3.23 rev 80, Includes - Dev Rev 457

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. How to make it click a color
    By RudeBoiAlex in forum OSR Help
    Replies: 5
    Last Post: 03-05-2007, 03:57 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
  •