I go like this:
boolean GUI_COMPLETE = false;
exampleGUI gui = new exampleGUI();
@Override
public void onStart() {
gui.setVisible(true);
}
@Override
public int onLoop() throws InterruptedException {
if (GUI_COMPLETE) {
//normal script loop;
}
return 50; // The amount of time in milliseconds before the loop
// starts
// over
}
public class exampleGUI extends JFrame {
//gui code with an actionlistener on the start button which sets GUI_COMPLETE to true, and disposes the GUI.
}
I know how to write files with java... I just wanted to know if you had to write files to a certain working directory. Or if we can write files to anywhere.
Oh with the other bot I use you have to use Util.getWorkingDirectory().toString() to get the directory to write to. Is that not needed for OSBot?
Also anyone know how to make the keyboard write faster :3
Also how can I change the account on a bot without having to add a new one.
1. What is the fastest way to make the client type a string? I've read all the previous topics but it looks like the API's changed.
2. How do I write a text file and read it? I'm used to another clients API.