Amberleaf Posted November 28, 2011 Share Posted November 28, 2011 I'm using MouseItem(9, False); to click the 9th slot iron ore item in my superheat script, but it's out by a pixel or so either side causing a miss click randomly on average every 200 or so clicks. Shouldn't be hard to fix should it wanted? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Wanted Posted November 29, 2011 Share Posted November 29, 2011 It's accurate, too accurate sometimes the mouse moves a pixel off from where you tell it to... making it rarely miss the edge sometimes. Simple fix for this is to make the box a bit smaller in MouseItem, while not changing GetItemBounds algorithm. I've already done it and will push it sometime tomorrow. This is the new one {=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= function MouseItem(Slot: Integer; TypeC: ClickActions): Boolean; Contributors: Wanted Description: Clicks on an item. Date Created: November 6th, 2011. By Wanted. RS2 Build 675. Last Modification: November 28th, 2011. By Wanted. RS2 Build 686. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=} function MouseItem(Slot: Integer; TypeC: ClickActions): Boolean; var B: TBox; begin Result := InvItemExists(Slot); if (not (Result)) then Exit; B := GetItemBounds(Slot); MouseBox(B.X1 + 2, B.Y1 + 2, B.X2 - 2, B.Y2 - 2, TypeC); end; Quote Link to comment Share on other sites More sharing options...
Amberleaf Posted November 29, 2011 Author Share Posted November 29, 2011 Thanks wanted, you legend Quote Link to comment Share on other sites More sharing options...