View Full Version : If not then (SCAR-DIVI) HELP!
Daher
10-18-2012, 05:16 PM
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.
Nebula
10-18-2012, 05:19 PM
If not (GetColor(x, y) = 12345) then...
The Killer
10-18-2012, 05:19 PM
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?
Daher
10-18-2012, 05:21 PM
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?
No i want it to detect red and if it's not red do something else.
Daher
10-18-2012, 05:35 PM
What nebula posted...
Doesn't work how do i make it check Dimensions of x,y,rx,ry
example it's not this but i'm hoping for another syntax:
If not (GetColor(x, y, rx, ry) = 2124024) then
And i change the x,y,rx,ry to numbers of coordinates...
footballjds
10-18-2012, 05:45 PM
Daher, are you searching an area for colors or a specific pixel?
Daniel
10-19-2012, 01:47 AM
Doesn't work how do i make it check Dimensions of x,y,rx,ry
example it's not this but i'm hoping for another syntax:
If not (GetColor(x, y, rx, ry) = 2124024) then
And i change the x,y,rx,ry to numbers of coordinates...
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).
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.