Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Sign in to follow this  
BryceTheCoder

[2007] Clicking the Game Tabs

Recommended Posts

Simple function I made for scripting in 2007 old school Runescape:

 

function ClickTab(Slot: Integer): integer;
begin
 case Slot of
   1: MouseBox(532,175-50,552,200-50,ClickLeft);
   2: MouseBox(566,175-50,586,200-50,ClickLeft);
   3: MouseBox(598,175-50,620,200-50,ClickLeft);
   4: MouseBox(629,175-50,654,200-50,ClickLeft);
   5: MouseBox(665,175-50,687,200-50,ClickLeft);
   6: MouseBox(696,175-50,720,200-50,ClickLeft);
   7: MouseBox(730,175-50,752,200-50,ClickLeft);

   8: MouseBox(530,471-50,555,497-50,ClickLeft);
   9: MouseBox(564,471-50,588,497-50,ClickLeft);
   10: MouseBox(598,471-50,620,497-50,ClickLeft);
   11: MouseBox(629,471-50,652,497-50,ClickLeft);
   12: MouseBox(663,471-50,686,497-50,ClickLeft);
   13: MouseBox(696,471-50,719,497-50,ClickLeft);
   14: MouseBox(729,471-50,747,497-50,ClickLeft);
   else ScriptTerminate;
 end;
end;

 

 

Usage:

ClickTab(4);//Clicks the inventory tab

 

 

 

NOTICE: I have a -50 on all the Y-Axis because I am using OSI with this function (which most of you do use OSI anyways) If you are not using OSI then it will not move your Y +50 so you may delete that -50.

Edited by BryceTheCoder

Share this post


Link to post
Share on other sites

This is what I've been using(using OSI include)

Procedure OpenTab(row,column:Integer);
Begin
 Mouse(528+33*column+Random(30),170+300*row+Random(25),1,1,true);    
end;

 

Usage: Open Inventory

OpenTab(0,3);

Open Logout Tab:

OpenTab(1,3);

Share this post


Link to post
Share on other sites
This is what I've been using(using OSI include)

Procedure OpenTab(row,column:Integer);
Begin
 Mouse(528+33*column+Random(30),170+300*row+Random(25),1,1,true);    
end;

 

Usage: Open Inventory

OpenTab(0,3);

Open Logout Tab:

OpenTab(1,3);

 

 

Thats cool if that works. But I just made myself a little function to help with RS2007

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×