Hi, I am trying to figure out something, but as I am still new to this im having a hard time... :/
What I wnat to do is to let the script figure out if its on top of a webpage or at the bottom by using some bitmaps so the next procedure would be able to use it.
Something like this (hope it makes some sense :S):
Simba Code:
program New;
{$i SRL\SRL.scar}
var
//Bitmaps
procedure LoadBitmaps;
begin
end;
procedure GetPosition(Position : Integer);
begin
if(FindBitmap(A, x, y) and FindBitmap(B, x, y))then
Position := Up;
if(FindBitmap(C, x, y) and FindBitmap(D, x, y))then
Position := Down;
else
begin
Writeln('NotFound');
end;
end;
procedure asdf;
begin
if(Up)then
//DoSomething
if(Down)then
//DoSomething
else
//DoSomething
end;
begin
SetupSRL;
LoadBitmaps;
GetPosition;
asdf;
end.
Any help would be greatly apreciated.
Thank you in advance