BryceTheCoder Posted February 27, 2013 Share Posted February 27, 2013 (edited) 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 February 27, 2013 by BryceTheCoder Quote Link to comment Share on other sites More sharing options...
lazarbeam Posted February 28, 2013 Share Posted February 28, 2013 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); Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted February 28, 2013 Author Share Posted February 28, 2013 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 Quote Link to comment Share on other sites More sharing options...