No idea... perhaps a bug with mirror mode. I heard there were some model interaction issues which recently arised, fingers crossed it will be fixed in the next mirror version whenever that may be. For now you may have to use injection
apa
a straight forward way to do it is to have your class called 'Gui' which contains the code for your gui. in that class, you have an actionlistener for your start button which gets the current selected settings and sends them statically to your main class.
here's how the actionlistener goes:
btnStart.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0) {
//code here eg:
Main.food = (String) foodComboBox.getSelectedItem();
setVisible(false);
}
});
and your main class:
//vars:
public static String food;
Gui GUI;
@Override
public void onStart() {
GUI = new Gui();
GUI.setVisible(true);
log("======================================================================"); log("script started or whatever");
}
@Override
public int onLoop() {
while(GUI.isVisible())
sleep(400);
return 200;
}
then the gui will feed you the values chosen on the gui when the start button is pressed, at the same time as running the script (breaking the while loop) and closing the gui.
apa
ps sorry for any typos, wrote most of the code in the reply box so there may be a few errors
UPDATE!
Version 3.40
Implemented new dynamic signature system (special thanks to @Bobrocket!) - you can track your progress quickly and easily by navigating to this link: http://apascripts.x10host.com/rockcrab/YOUR_USERNAME_HERE.png >> don't forget to change the 'your username here' with your OSBot username. Preview of dynamic signature:
UPDATE!
Version 1.49
Added custom cursor and mouse trail
Added anti-aliasing to paint
Added new food on request: sweetcorn
Added support to my new dynamic signature system (special thanks to @Bobrocket!) - you can now track your personal progress by opening this link: http://apascripts.x10host.com/cook/YOUR_NAME_HERE.png >> don't forget to change the 'YOUR_NAME_HERE' with your OSBOT USERNAME
Big update eh? Below is a pic of the new dynamic signature. Feel free to add yours to your signature to share the loooove!! :
happy botting!
apa
Script seems to be working fine for me...
it banks and cooks no problem
have you tried in injection mode?
Put your raw fish at the top of your main tab of your bank and try again!
apa
let me know if you run into any problemos.
message to all:
Also, i pushed a dynamic signature system live a few hours ago. I initially made it for my smither but will migrate it to my other scripts as well It should be integrated into the scripts before tomorrow. This will allow you to track your progress overall
eg:
apa
Strange. I'll give it a test run later today. Just to make sure, you are standing in rogues den right? try and find a world where the banker guy is a bit closer to the fire.
apa
UPDATE!!
Version 1.10
Added dynamic signature system. This is a system which saves your progress when the script shuts off and adds it to your personal total. It also sums the gains of all users. HUGE thankyou to @Bobrocket who made this possible!
See your personal progress by visiting http://apascripts.x10host.com/smith/YOUR_NAME_HERE.png
See overall progress by visiting http://apascripts.x10host.com/smith/all.png
Feel free to put your signature image into your personal signature on this site to share the love!
well its not ruining your reputation, it's telling other ppl to take care with trading with a newer member. Just to stop ppl making new accs and scamming on them. But deffo could be wrong as i've never used the market xd
apa
close osbot, delete all files in your script directory, open osbot, reexport script, refresh scripts, voila!
apa
PS i'm glad I got you into scripting
hopefully things go well and good luck don't give up!
apa