Jump to content

How to click in a rectangle?


Recommended Posts

Posted (edited)

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 by twin 763
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...