Jump to content

OSBot Script Skeleton - The minimum code to make a script


Alek

Recommended Posts

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
Link to comment
Share on other sites

  • 7 months later...
  • 7 months later...

(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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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