Jump to content

Console


Recommended Posts

Posted

i searched google i didn't understand anything see my script has states and etc and i thought without using log("") the OSBot's one why don't i create a console for my self so i created a GUI and and had jTextArea so i wanted like without using OSBot's logger as console i wanted to try to make my console.

 

Then I guess you could do this.


public void logConsole(String str){
   textArea.append(str+"\n");

}

then you could call the method like so where you need it.

logConsole("Test");
Posted (edited)

Ik i checked the variable it is textArea and i typed it like that in the script but says cannot be resolved.

Where are you putting in that method, in your script class or in your gui class? It should go into the gui class.

Or can you just pm me you gui class and I will fix it for you.

Edited by Vilius

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