Narcle
2008-09-13 17:00:52
So I know this works in SMART and stuff. Instead of using the mouse to click the tab, this uses the F keys to switch tabs.
Update 10-05-2008: Did some testing in new scripts of mine. Shortened version works awesome.
Update 10-05-2008: Did some testing in new scripts of mine. Shortened version works awesome.
{*******************************************************************************
function FTab: Boolean;
by: Narcle, shortened by Dans The Man
Description: Uses F keys to get to tab menus
1 - Combat, 2 - Statistics, 3 - Quest Journal, 4 - Inventory,
5 - Equipped, 6 - Prayers, 7 - Magic Spells, 8 - Friends List
*******************************************************************************}
function FTab(Tab: integer): boolean;
begin
if (GetCurrentTab = Tab) then
begin
Result := true;
Exit;
end;
if (Tab > 0) and (Tab < 9) then
TypeByte(111+Tab)
else
srl_Warn('FTab', 'Tab '+inttostr(tab)+' isn''t a valid option.', warn_AllVersions)
Result := GetCurrentTab = Tab;
end;