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.

GUI use

Featured Replies

then you are stupider than you look, iv'e said about 4 times now i have made the GUI but i dont know how to implement it into my already existent script

 

Yes I am stupid, yet I write the API your using...

 

#Logic

why all this fighting facep.gif

 

notriouspp: isnt stupid hes part of the api team.

 

op: You need to know java to script. What you said earlier i dont need to know java is completely stupid. We scripters arent here to spoon feed you. You ask a question and we help as much as we can.

 

And for you question: Make an instance of your gui, and in the onstart make it visible. Within your gui make public getter methods so you could grab your variables easier.

  • Author

why all this fighting facep.gif

 

notriouspp: isnt stupid hes part of the api team.

 

op: You need to know java to script. What you said earlier i dont need to know java is completely stupid. We scripters arent here to spoon feed you. You ask a question and we help as much as we can.

 

And for you question: Make an instance of your gui, and in the onstart make it visible. Within your gui make public getter methods so you could grab your variables easier.

 

you obv didnt read other posts by me, saying i didnt mean how that sounded....

 

but thankyou... thats whta i was asking for...not for spoonfeed

 

"Make an instance of your gui, and in the onstart make it visible. Within your gui make public getter methods so you could grab your variables easier."

 

would that have been sooo hard guys???

i cant stop laughing


public class GUI extends JFrame {

 

public GUI(){

//code here

}

 

}

 

public class woodcutter extends Script {

 

@manifest 

 

GUI gui;

 

public void onStart(){

gui = new GUI();

gui.setVisible(true);
}

 

}

 

this should help you out, if not then pls learn java

Edited by Reid

@OP

 

We're not trying to be dicks, none of us are coding legends that know absolutely everything so we to are asking questions all the time, however the difference is we'll try different things out until we discover the answer to our question. Not only that, but when we ask and question and it is answered (like here when we said to go back and learn basic Java concepts) we buckle down and tackle whatever we need to do head on.

 

I know it can be frustrating, but there's a reason why there's a limited number of scripters.

@OP

 

We're not trying to be dicks, none of us are coding legends that know absolutely everything so we to are asking questions all the time, however the difference is we'll try different things out until we discover the answer to our question. Not only that, but when we ask and question and it is answered (like here when we said to go back and learn basic Java concepts) we buckle down and tackle whatever we need to do head on.

 

I know it can be frustrating, but there's a reason why there's a limited number of scripters.

OT: @Swizzbeat i seem unable to PM you.. every time i try osbot goes offline... and i thought i had you on skype but i dont

i cant stop laughing

public class GUI extends JFrame {

 

public GUI(){

//code here

}

 

}

 

public class woodcutter extends Script {

 

@manifest 

 

GUI gui;

 

public void onStart(){

gui = new GUI();

gui.setVisible(true);

}

 

}

 

this should help you out, if not then pls learn java

	SwingUtilities.InvokeLater(new Runnable() {
		@Override
		public void run() {
			Gui g = new Gui();
			g.setVisible(true);
		}
	});
	
	while(g.isVisible()) {
		sleep(50);
	}
Guest
This topic is now closed to further replies.

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.