Joseph Posted May 9, 2015 Share Posted May 9, 2015 (edited) For those wondering how to find out if the enter amount is up for people to handle it correctly and not miss up. Here the snippet. Best fail safe so a character doesnt type an amount in the chatbox. /** * the interface is usually never null, but changes location when visible or not * * @return true if the 'enter amount' interface is visible */ public boolean canEnterAmount() { RS2Widget warning = getWidgets().get(548, 119); return warning != null && !warning.getPosition().equals(new Point(-1,-1)); } have fun and happy scripting Edited May 9, 2015 by josedpay 5 Quote Link to comment Share on other sites More sharing options...
lpbrown Posted June 13, 2015 Share Posted June 13, 2015 I assume this is for use on things like smelt X sort of interface? ill give this a go in a script im building Quote Link to comment Share on other sites More sharing options...
Twin Posted June 13, 2015 Share Posted June 13, 2015 I assume this is for use on things like smelt X sort of interface? ill give this a go in a script im building Yeah that's what you'd use this for. So call the method before you have it try and type anything. 1 Quote Link to comment Share on other sites More sharing options...
lpbrown Posted June 13, 2015 Share Posted June 13, 2015 Yeah that's what you'd use this for. So call the method before you have it try and type anything. Any hints as to how to actually make the bot type in a certain amount at that widget menu? Quote Link to comment Share on other sites More sharing options...
Flamezzz Posted June 13, 2015 Share Posted June 13, 2015 (edited) if(widgets.get(162,32) != null && widgets.get(162,32).isVisible()) { keyboard.typeString("something", true); } Edited June 13, 2015 by Flamezzz Quote Link to comment Share on other sites More sharing options...
Twin Posted June 13, 2015 Share Posted June 13, 2015 Any hints as to how to actually make the bot type in a certain amount at that widget menu? keyboard.typeString("" + random(28, 99)); That will do a random number from 28 to 99. Quote Link to comment Share on other sites More sharing options...
lpbrown Posted June 13, 2015 Share Posted June 13, 2015 keyboard.typeString("" + random(28, 99)); That will do a random number from 28 to 99. well yes haha but im pretty sure most people can understand that. a specific number would just be keyboard.typeString("YOURNUMBER"); Quote Link to comment Share on other sites More sharing options...
Joseph Posted June 13, 2015 Author Share Posted June 13, 2015 for those still looking to use this method you will need to update the widget thats all Quote Link to comment Share on other sites More sharing options...