March 15, 201510 yr How do i make my script click at a random place within a rectangle? Thanks in advance guys!
March 15, 201510 yr How do i make my script click at a random place within a rectangle? Thanks in advance guys! localWalker.walk(AreaYou'reUsingHere.getRandomPosition(0));
March 15, 201510 yr Author localWalker.walk(AreaYou'reUsingHere.getRandomPosition(0)); haha that's not exactly what i meant;p I want my script to click on a interface.
March 15, 201510 yr haha that's not exactly what i meant;p I want my script to click on a interface. Oh my bad! I thought you meant rectangle as in an area. RS2Widget w = widgets.get(459,90);//459 is your parent, 90 is the child. We're setting w = to widgets.get(459,90) if (w != null&&w.isVisible())//checks to make sure the interface is open w.interact("Make X");//were interacting with 459,90 in the interface keyboard.typeString("" + random(28, 100000));//types in 28 -1000000 to give it variation. To get the parent/child, open up an interface and highlight over the one you want.The one that has the color box around it that you need(green, white, red)look where all the numbers are on the side of your screen and write them down. The one on the top is the parent and the one on the bottom is the child. Sorry if this is an awful explanation Actaully this still isnt what you wanted. nevermind. Going to leave it here though in case anyone see's any use in it. Edited March 15, 201510 yr by twin 763
March 15, 201510 yr Here you go: mouse.click(new RectangleDestination(bot, new Rectangle(0,0,20,20)));
Create an account or sign in to comment