Ok well I made a few of them so plz try 'em out; Its nothing special using math or anything. All it does is find the matching pixels of the four corners of the compass if they are all the same, exits and results true. Nothing Fancy. Both of them work 5/6 times and the one they didnt work, they just kept rotating so that shouldnt be a problem
Why It Works
http://img339.imageshack.us/img339/126/compasszz4.png<----------Aligns the colors outlined in yellow by rotating compass
Couldnt Make the image bigger. Check your own compass at north to see why.
For Some reason the one below works everytime :cartman:. Don't know why. Got it 30/30 times for me
SCAR Code:
function MakeScreenPerfect : boolean;
var
TurnTime : integer;
begin
result := false;
TurnTime := 0;
If(GetColor(565,18)=GetColor(580,20))and
(GetColor(565,18)=GetColor(567,34))and
(GetColor(565,18)=GetColor(553,21))then
begin
result := true;
Exit;
end;
KeyDown(VK_Left);
repeat
until(GetColor(565,18)=GetColor(580,20))and
(GetColor(565,18)=GetColor(567,34))and
(GetColor(565,18)=GetColor(553,21))and
(GetColor(580,20)=GetColor(567,34))and
(GetColor(580,20)=GetColor(553,21))and
(GetColor(567,34)=GeTColor(553,21));
KeyUp(VK_Left);
wait(100);
KeyDown(VK_Right);
wait(50);
KeyUp(VK_Right);
Result := true;
end;
SCAR Code:
function MakeScreenPerfect : boolean;
begin
result := false;
HighestAngle;
KeyDown(VK_Up);
wait(2000);
KeyUp(VK_Up);
If(GetColor(565,18)=GetColor(580,20))and
(GetColor(565,18)=GetColor(567,34))and
(GetColor(565,18)=GetColor(553,21))and
(GetColor(580,20)=GetColor(567,34))and
(GetColor(580,20)=GetColor(553,21))and
(GetColor(567,34)=GeTColor(553,21))then
begin
result := true;
Exit;
end;
KeyDown(VK_Left);
repeat
until(GetColor(565,18)=GetColor(580,20))and
(GetColor(565,18)=GetColor(567,34))and
(GetColor(565,18)=GetColor(553,21))and
(GetColor(580,20)=GetColor(567,34))and
(GetColor(580,20)=GetColor(553,21))and
(GetColor(567,34)=GeTColor(553,21));
KeyUp(VK_Left);
wait(100);
KeyDown(VK_Right);
wait(50);
KeyUp(VK_Right);
Result := true;
end;
SCAR Code:
function MakeScreenPerfect : boolean;
begin
result := false;
HighestAngle;
KeyDown(VK_Up);
wait(2000);
KeyUp(VK_Up);
If(GetColor(565,18)=GetColor(580,20))and
(GetColor(565,18)=GetColor(567,34))and
(GetColor(565,18)=GetColor(553,21))and
(GetColor(580,20)=GetColor(567,34))and
(GetColor(580,20)=GetColor(553,21))and
(GetColor(567,34)=GeTColor(553,21))then
begin
result := true;
Exit;
end;
KeyDown(VK_Left);
repeat
KeyUp(VK_Left);
wait(100);
until(GetColor(565,18)=GetColor(580,20))and
(GetColor(565,18)=GetColor(567,34))and
(GetColor(565,18)=GetColor(553,21))and
(GetColor(580,20)=GetColor(567,34))and
(GetColor(580,20)=GetColor(553,21))and
(GetColor(567,34)=GeTColor(553,21));
KeyDown(VK_Right);
wait(50);
KeyUp(VK_Right);
Result := true;
end;