Jump to content

OSBot Script Skeleton - The minimum code to make a script


Recommended Posts

Posted
2 hours ago, Khaleesi said:

If you start a new class and you typ by hand, "Extends Script"
You can let it auto generate the onLoop method.

Same for the Manifest, just typ "@Manifest" and it will auto generate it..

Atleast in IntelliJ ^^

You can also see all methods that are a part of the Script class by pressing CTRL + O after you extend your main class :D 

(I love IntelliJ)

  • Like 4
  • 7 months later...
  • 7 months later...
Posted (edited)

(Nevermind - IntelliJ defaulted to using the wrong JDK)

I copied this skeleton exactly, and compiled the jar and put it in the scripts folder but after refreshing the osbot scripts, a, it is still not showing up. There are other scripts in the folder that are showing up in the list so it doesn't like this jar for some reason. Any ideas?

Edited by jarsh921

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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