March 23, 20178 yr When pressing shift, getMenu().getDefaultToolTip() still returns for example; "Use Iron ore". Is there any ways of getting the actual toolTip or if this is the correct way of getting it, might be clients bug ? @Alek Edited March 23, 20178 yr by Ayylmao420
March 23, 20178 yr 37 minutes ago, Ayylmao420 said: When pressing shift, getMenu().getDefaultToolTip() still returns for example; "Use Iron ore". Is there any ways of getting the actual toolTip or if this is the correct way of getting it, might be clients bug ? @Alek Because i think when u use shift and try to right click the first option still appears as "Use" not sure maybe.
March 23, 20178 yr Author 3 minutes ago, progamerz said: Because i think when u use shift and try to right click the first option still appears as "Use" not sure maybe. You are correct, pressing shift doesn't change the order of options in menu. Edited March 23, 20178 yr by Ayylmao420
March 24, 20178 yr On 3/23/2017 at 8:04 AM, Ayylmao420 said: When pressing shift, getMenu().getDefaultToolTip() still returns for example; "Use Iron ore". Is there any ways of getting the actual toolTip or if this is the correct way of getting it, might be clients bug ? @Alek If all you're trying to do is interact with an item while holding shift, determining the item's tool tip isn't necessary. Calling an item's interact() method without passing in any strings will simply left click the item, and if you're holding shift while doing this, the item will drop. //Shift dropping List<Item> logList = getInventory().filter(new NameFilter<>("Logs")); if (logList.size() > 0) { getKeyboard().pressKey(KeyEvent.VK_SHIFT); for (Item log : logList) { log.interact(); } getKeyboard().releaseKey(KeyEvent.VK_SHIFT); } Edited March 24, 20178 yr by Easy
March 24, 20178 yr 53 minutes ago, Easy said: If all you're trying to do is interact with an item while holding shift, determining the item's tool tip isn't necessary. Calling an item's interact() method without passing in any strings will simply left click the item, and if you're holding shift while doing this, the item will drop. //Shift dropping List<Item> logList = getInventory().filter(new NameFilter<>("Logs")); if (logList.size() > 0) { getKeyboard().pressKey(KeyEvent.VK_SHIFT); for (Item log : logList) { log.interact(); } getKeyboard().releaseKey(KeyEvent.VK_SHIFT); } If all he is trying to do is shift drop, he should just enable shift dropping in the rs settings and then the OSBot drop method will automatically use shift dropping. I have a snippet in the snippets section to enable shift dropping
Create an account or sign in to comment