Hey everyone,
i learned the basics of this program and now i have a problem with some script that i made by my own .. please help me ! the error says "Invalid search area Line 14" (first line of FindColor function)
program New;
var
Int: Integer;
w,x,y,z : Integer;
begin
Int := 0;
repeat
for Int := 1 to 100000 do;
if (FindColor(x,y,11972407,410, 213,409, 547) or
(FindColor(x,y,11380276,410, 213,409, 547) or
(FindColor(x,y,12301369,410, 213,409, 547) or
(FindColor(x,y,11578418,410, 213,409, 547) or
(FindColor(x,y,10657325,410, 213,409, 547) or
(FindColor(x,y,12828476,518, 100,521, 543) or
(FindColor(x,y,12499258,518, 100,521, 543) or
(FindColor(x,y,12630331,518, 100,521, 543) or
(FindColor(x,y,13749058,518, 100,521, 543) or
(FindColor(x,y,13222207,518, 100,521, 543) or
(FindColor(x,y,11972662,632, 103,631, 545) or
(FindColor(x,y,11644213,632, 103,631, 545) or
(FindColor(x,y,13090878,632, 103,631, 545) or
(FindColor(x,y,11643445,632, 103,631, 545) or
(FindColor(x,y,10919984,632, 103,631, 545) or
(FindColor(x,y,12433721,740, 101,742, 545) or
(FindColor(x,y,11381553,740, 101,742, 545) or
(FindColor(x,y,12171831,740, 101,742, 545) or
(FindColor(x,y,13354558,740, 101,742, 545) or
(FindColor(x,y,11117361,740, 101,742, 545) or
(FindColor(x,y,12301369,411, 323,851, 544) or
(FindColor(x,y,12499258,411, 323,851, 544) or
(FindColor(x,y,10920237,411, 323,851, 544) or
(FindColor(x,y,13551681,411, 323,851, 544) or
(FindColor(x,y,11841334,411, 323,851, 544) or
(FindColor(x,y,12564283,963, 102,962, 542) or
(FindColor(x,y,11512116,963, 102,962, 542) or
(FindColor(x,y,14011972,963, 102,962, 542) or
(FindColor(x,y,12894779,963, 102,962, 542) or
(FindColor(x,y,13354559,963, 102,962, 542))))))))))))))))))))))))))))))) then
begin
Wait(500)
ClickMouse(x,y,MbLeft)
Wait(5000)
ClickMouse(1000,620,MbLeft)
Wait(20000)
ClickMouse(1121,229,MbLeft)
end else
begin
if (FindColor(x,y,3880906,435,100,975,525) or
(FindColor(w,z,2632865,435,100,975,525) or
(FindColor(w,z,2436784,435,100,975,525) or
(FindColor(w,z,1252755,435,100,975,525) or
(FindColor(w,z,2434729,435,100,975,525) or
(FindColor(w,z,2567843,435,100,975,525) or
(FindColor(w,z,2697387,435,100,975,525) or
(FindColor(w,z,1319062,435,100,975,525) or
(FindColor(w,z,2631589,435,100,975,525) or
(FindColor(w,z,2304944,435,100,975,525) or
(FindColor(w,z,2371243,435,100,975,525) or
(FindColor(w,z,1055369,435,100,975,525) or
(FindColor(w,z,1843100,435,100,975,525) or
(FindColor(w,z,2238119,435,100,975,525) or
(FindColor(w,z,1252495,435,100,975,525) or
(FindColor(w,z,3880905,435,100,975,525) or
(FindColor(w,z,858755,435,100,975,525) or
(FindColor(w,z,2962113,435,100,975,525) or
(FindColor(w,z,922499,435,100,975,525) or
(FindColor(w,z,921962,435,100,975,525) or
(FindColor(w,z,725620,435,100,975,525) or
(FindColor(w,z,2237601,435,100,975,525) or
(FindColor(w,z,1645713,435,100,975,525) or
(FindColor(w,z,1713311,435,100,975,525) or
(FindColor(w,z,2172068,435,100,975,525) or
(FindColor(w,z,2042537,435,100,975,525) or
(FindColor(w,z,2370461,435,100,975,525) or
(FindColor(w,z,2567324,435,100,975,525) or
(FindColor(w,z,2371246,435,100,975,525) or
(FindColor(w,z,2566048,435,100,975,525))))))))))))))))))))))))))))))) then
begin
ClickMouse(w,z,MbLeft)
Wait(5000)
ClickMouse(1000,620,MbLeft)
Wait(10000)
ClickMouse(1250,650,MbLeft)
Wait(10000)
ClickMouse(1018,358,MbLeft)
Wait(1000)
ClickMouse(1018,358,MbLeft)
end else
begin
ClickMouse(1022,409,MbLeft)
Wait(5000)
end;
end;
until Int=10000;
end.