Jump to content

Creating GUI/Form


Recommended Posts

Posted

I am planning on making a simple mining bot and have been looking around for information. I can't find much on making a GUI to take user input before starting the script, such as what rocks to mine etc. Do you just create a normal GUI as you would normally in Java? Or is there some specific thing you need to do for OSBot?

Posted (edited)

Just create a GUI as you would normally do in Java, then take whatever input inside the textfield, and assign it to a variable, which then you can use to determine which rock to mine etc.

 

However, AFAIK rocks don't have a name, which means you'll either need to use IDs (Not recommend) or Colours.

Edited by Viston

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...