Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Console

Featured Replies

Hey,

I created a private script for my self and created a simple Console GUI, how can i make the script send text to the Console GUI which i made?

 

Thanks,

Progamerz

Im guessing you could make a scrollable text area and add a new line to it each time u print something to it.

  • Author

Im guessing you could make a scrollable text area and add a new line to it each time u print something to it.

 

I did that but idk how to make it print something on it this is what i am asking... tried many.

I did that but idk how to make it print something on it this is what i am asking... tried many.

Be more definitive man, what did you try, what do you have now. You really do need to provide more information.
  • Author

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.

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");
  • Author

 

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");

 

Says error on the textarea, says it cannot be resolved.

Says error on the textarea, says it cannot be resolved.

The textarea is your JTextArea variable.

Its JTextArea textarea = ... which you defined it yourself in the gui class

  • Author

The textarea is your JTextArea variable.

Its JTextArea textarea = ... which you defined it yourself in the gui class

 

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

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

  • Author

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.

 

Says u can't receive messages

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.