Simba Code:
function FTab(Tab: integer): boolean;
var
T, F: integer;
begin
if (GetCurrentTab = Tab) then
begin
result := true;
Exit;
end;
if not IsActionBarOpen then //F keys disabled when Action Bar not open
begin
Result:= GameTab(Tab);
Exit;
end;
Case Tab of
tab_Inv: F := 1;
tab_Equip: F := 2;
tab_Prayer: F := 3;
tab_Magic: F := 4;
tab_Combat: F := 5;
else
writeln('Tab '+inttostr(tab)+' isn''t a valid option.');
end;
T := GetSystemTime + 618;
Repeat
TypeByte(111+F);
Wait(150+random(100));
Result := GetCurrentTab = Tab;
until Result or (GetSystemTime > T);
if not Result then //F keys sometimes doesn't work properly in EOC, may be a bug on Jagex's part though
Result:= GameTab(Tab); //nevertheless this is a good failsafe
end;
Simba Code:
function FTab(Tab: integer): boolean;
var
T, F: integer;
begin
if (GetCurrentTab = Tab) then
begin
result := true;
Exit;
end;
Case Tab of
tab_Inv: F := 1;
tab_Equip: F := 2;
tab_Prayer: F := 3;
tab_Magic: F := 4;
tab_Combat: F := 5;
else
writeln('Tab '+inttostr(tab)+' isn''t a valid option.');
end;
T := GetSystemTime + 618;
Repeat
TypeByte(111+F);
Wait(150+random(100));
Result := GetCurrentTab = Tab;
until Result or (GetSystemTime > T);
if not Result then //F keys sometimes doesn't work properly in EOC, may be a bug on Jagex's part though
Result:= GameTab(Tab); //nevertheless this is a good failsafe
end;