Daher
08-20-2012, 10:56 AM
How can i make SIMBA do a task when it can't recognize the color
maybe?
var
A:Integer
B:Integer
const
GOLDC = 1816341; // Goldcharms color
begin
repeat;
if findcolor(A,B,4143674,790,301,983,550)then
clickmouse(A,B,0,0,mouse_left);
until(false);
end.
begin
ClickMouse(790,549,391,493,mouse_left) // This is the task it should do if it can't find the color ?,
end;
So basically i have the main task loop, but if it can't find it then it'll go to the clickmouse one
Please give me the syntax what i did at up, is just a example....
maybe?
var
A:Integer
B:Integer
const
GOLDC = 1816341; // Goldcharms color
begin
repeat;
if findcolor(A,B,4143674,790,301,983,550)then
clickmouse(A,B,0,0,mouse_left);
until(false);
end.
begin
ClickMouse(790,549,391,493,mouse_left) // This is the task it should do if it can't find the color ?,
end;
So basically i have the main task loop, but if it can't find it then it'll go to the clickmouse one
Please give me the syntax what i did at up, is just a example....