maxime 0 Posted August 8, 2016 Hi i am looking for a tutorial how to make a GUI interact with my script thanks you
Calculus 30 Posted August 8, 2016 Hi i am looking for a tutorial how to make a GUI interact with my script thanks you Literally an entire section dedicated to this: http://dreambot.org/forums/index.php/forum/96-tutorials/ >.>
maxime 0 Author Posted August 8, 2016 Literally an entire section dedicated to this: http://dreambot.org/forums/index.php/forum/96-tutorials/ >.> There no Tutorial aout GUI mate there only one with computor and its not working for me ...
Calculus 30 Posted August 8, 2016 There no Tutorial aout GUI mate there only one with computor and its not working for me ... You fail at looking: http://dreambot.org/forums/index.php/topic/3556-dreamlickers-video-tutorials/ Furthermore, Computor's tutorials are super straight forward, and I just tested his code, it works fine. If you're having problems post them, otherwise tutorials already exist.
Mad 86 Posted August 8, 2016 Literally all you do is make a component in whatever gui library you want to use (probably Swing, use the link eclipseop posted) Add a listener to that component, (like a click listener), so something happens when the component is clicked. That something would be maybe setting some value to true or false. For simplicity sakes maybe a public static variable in your main class that you can set to true or false depending on the click.
Dreamlicker 750 Posted August 8, 2016 Literally all you do is make a component in whatever gui library you want to use (probably Swing, use the link eclipseop posted) Add a listener to that component, (like a click listener), so something happens when the component is clicked. That something would be maybe setting some value to true or false. For simplicity sakes maybe a public static variable in your main class that you can set to true or false depending on the click. Making it a static variable will cause issues with multiple instances of the script. No reason to do that afaik.
Mad 86 Posted August 8, 2016 Making it a static variable will cause issues with multiple instances of the script. No reason to do that afaik. Yeah i agree, I only said that just incase he's unfamiliar with whole instances work, because then it could become a pain
Calculus 30 Posted August 8, 2016 Making it a static variable will cause issues with multiple instances of the script. No reason to do that afaik. Wtf? No it won't lmao...
Mad 86 Posted August 8, 2016 Wtf? No it won't lmao... I think he's saying if you have multiple tabs open of the same script, it could potentially mess it up due to it all using the same JVM. I'm not sure of the specifics though
Recommended Posts
Archived
This topic is now archived and is closed to further replies.