Twin Posted January 19, 2015 Share Posted January 19, 2015 I was reading the guide on how to setup a basic script and I didn't see it anywhere. I'm not new to java, I have about 6 months of experience with it, but i've never wrote anything that didn't use public static void main. Link to comment Share on other sites More sharing options...
Botre Posted January 19, 2015 Share Posted January 19, 2015 I was reading the guide on how to setup a basic script and I didn't see it anywhere. I'm not new to java, I have about 6 months of experience with it, but i've never wrote anything that didn't use public static void main. Scripts aren't standalone applications, the main method is in the code of the client (through which a script is executed). Link to comment Share on other sites More sharing options...
Twin Posted January 19, 2015 Author Share Posted January 19, 2015 Scripts aren't standalone applications, the main method is in the code of the client (through which a script is executed). ahh okay that makes more sense. Everything I have written so far has just been standalone. Thanks for the quick reply! Don't know why I didnt think of this lol. Link to comment Share on other sites More sharing options...
Swizzbeat Posted January 19, 2015 Share Posted January 19, 2015 Your script class files get loaded into memory by the bot. The bot then calls the necessary methods within your script (#onLoop, #onStart, etc.) to make it "work". You're not starting a new process. 1 Link to comment Share on other sites More sharing options...
Twin Posted January 19, 2015 Author Share Posted January 19, 2015 Your script class files get loaded into memory by the bot. The bot then calls the necessary methods within your script (#onLoop, #onStart, etc.) to make it "work". You're not starting a new process. Yeah, it makes a lot more sense now. I didn't really have a good understanding of how osbot/its api worked. Still trying to figure all that out. Link to comment Share on other sites More sharing options...