Jacob
2012-03-21 23:24:34
How do I use FindColor?
if FindColor(var x,y,: Integer; color, xs, ys, xe, ye: Integer):
if FindColor(var x,y,: Integer; color, xs, ys, xe, ye: Integer):
2012-03-21 23:24:34
2012-03-21 23:35:30
Findcolor(X,Y, 1234556, MSX1, MSY1, MSX2, MSY2) This looks for the color 1234556 in the main screen. The MSX1, MSY1 is the coordinate in the top left of the screen and MSX2, MSY2 is the coordinate in the bottom right of the main screen. This creates a box to look for the color in. It returns the spot the color was found as x,y Procedure FindSomeColor;
Var
x, y: integer;
Begin
FindColor(x,y, 1234556, 1, 1, 100, 100)
Mouse(x, y, 5 , 5, True);
End;2012-03-21 23:41:23
2012-03-21 23:50:38
From: Jacob
also, what is wrong with this?
if GetColor(-412, -4,: True): 251;
Getcolor(50,150)
If (GetColor(50,150) = 123456) Then
blah... blah;
So if the color at 50,150 equals your color (123456) then you could do something. Idk what else you'd want to do with it. Not sure where you're going with it. You also can't use negative numbers. If your getting negative numbers you need to press the target icon then drag it to the rs window to set the correct window.
2012-03-22 07:46:05