I need help i want my bot to do a task if the color is not red
something like if color not then mouse(a,b,0,0,true);
I want it to simply do a task if the color is not the color i'm looking for.
I need help i want my bot to do a task if the color is not red
something like if color not then mouse(a,b,0,0,true);
I want it to simply do a task if the color is not the color i'm looking for.
If not (GetColor(x, y) = 12345) then...
sorry are you looking to see if the mouse has the red cross after clicking , or do you not want it to click on red?
What nebula posted...
Daher, are you searching an area for colors or a specific pixel?
The syntax is exactly the same as SCAR.
GetColor only accepts two parametres, an integer x and an integer y, as it is designed to only grab the colour of one pixel on the screen (and not multiple).
If you want to search an area if a colour exists, then use FindColor.
If you want to check if an area solely contains one colour, then check if the output of CountColor matches the area-size of the area you want to search (i.e. width * height, basic maths).
You may contact me with any concerns you have.
Are you a victim of harassment? Please notify me or any other staff member.
| SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |
There are currently 1 users browsing this thread. (0 members and 1 guests)