bud_wis_er_420
2013-03-04 18:17:23
I keep getting an error while trying to use WaitFuncEx
Error: Exception: Invalid type cast at line 267
Here is the procedure I'm trying to use. It should clean a full inv of herbs.
Error: Exception: Invalid type cast at line 267
Here is the procedure I'm trying to use. It should clean a full inv of herbs.
procedure Clean_Herbs;
var
TVA: TVariantArray;
begin
if(Found_Bank = true)then
begin
if not FindColorTolerance(x, y, 2366993, 58, 65, 80, 75, 5) then
InvMouse(1, 1);
TVA := [58, 65, 2366993, 58, 65, 80, 75, 5];
if WaitFuncEx('FindColorTolerance', TVA, 200, 2000) then
begin
Mouse(316, 307, 100, 14, 1);
TVA := [216, 167, 263410, 216, 167, 305, 186, 15];
if WaitFuncEx('FindColorTolerance', TVA, 200, 2000) then
begin
writeln('Making...');
TVA := [216, 167, 11698698 , 216, 167, 305, 186, 15];
WaitFuncEx('FindColorTolerance', TVA, 200, 30000);
end;
end;
end;
end;