Jump to content

Help With GUI


Xiurik

Recommended Posts

Hello, i have made my GUI for my script, with the labels, buttons, etc etc, but i really dont know where to put the code, im using windows builder but idk where to put the code or where to call the form, im LOST.

 

If someone uses windows builder to make gui and know where to put the code please let me know.

 

Also Thanks.

Link to comment
Share on other sites

I would personally make a new class called something like GUI or whatever you want. Then from your actual script class make a reference variable and set it up there.

 

Also don't forget to create your own variable to keep the script from running while the GUI's up. A boolean of false changing to true when you confirm the stuff in the GUI should work.

  • Like 1
Link to comment
Share on other sites

I would personally make a new class called something like GUI or whatever you want. Then from your actual script class make a reference variable and set it up there.

 

Also don't forget to create your own variable to keep the script from running while the GUI's up. A boolean of false changing to true when you confirm the stuff in the GUI should work.

 

Have you an Example of where to call and about the variable??

Link to comment
Share on other sites

 

I would personally make a new class called something like GUI or whatever you want. Then from your actual script class make a reference variable and set it up there.

 

Also don't forget to create your own variable to keep the script from running while the GUI's up. A boolean of false changing to true when you confirm the stuff in the GUI should work.

 

Have you an Example of where to call and about the variable??

 

I can get you one when I get home from school.

 

If you want take a look at Anon's code for his guild fisher, its where I got the idea to do mine. http://osbot.org/forum/topic/3861-sharklobster-guild-fisher-last-update-10813-335-pm/

Link to comment
Share on other sites

  • 3 weeks later...

I'd also like some help with this. I used to do it in other bot clients by:

GUI gui = new GUI();
gui.setVisible(true);
gui.setLocationRelativeTo(null);
while (gui.isVisible())
{
    try {sleep(50);} catch (InterruptedException e) {
    } finally {};
}

But it works horribly. When I dispose my GUI, it takes about 10 seconds to load whatever settings were chosen, and then the bot gets ~15 fps, from 50 before the script start.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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