Jump to content

Console


progamerz

Recommended Posts

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.

Link to comment
Share on other sites

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");
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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