Jump to content

Cursor Help


Recommended Posts

Posted

Sure, everything is fine when you look up a tutorial on another botting site with a different api.

 

You need to make one for yourself

Just place this in your onPaint() method and you should be set.

Point mP = getMouse().getPosition();

g.drawLine(mP.x - 5, mP.y + 5, mP.x + 5, mP.y - 5); 
g.drawLine(mP.x + 5, mP.y + 5, mP.x - 5, mP.y - 5);
Posted (edited)

 

Sure, everything is fine when you look up a tutorial on another botting site with a different api.

 

You need to make one for yourself

Just place this in your onPaint() method and you should be set.

Point mP = getMouse().getPosition();

g.drawLine(mP.x - 5, mP.y + 5, mP.x + 5, mP.y - 5); 
g.drawLine(mP.x + 5, mP.y + 5, mP.x - 5, mP.y - 5);

 

I used tutorials from this website but I suppose they are outdated..

Tutorial I was using: http://osbot.org/forum/topic/47926-adding-a-custom-cursor-to-your-script/

Edited by Rhetoric
Posted (edited)

I used tutorials from this website but I suppose they are outdated..

Tutorial I was using: http://osbot.org/forum/topic/47926-adding-a-custom-cursor-to-your-script/

 

API changes a lot over time. Sometimes methods get renamed, sometimes they get moved elsewhere. You should still try to find it using the API though... if you had gone to Mouse and did Ctrl-f for paint you'd have found it tongue.png

 

getMouse().setDefaultPaintEnabled(false);

Tho I don't think it's still necessary.

 

 

FrostBug always coming to the rescue :D

 

Mind adding my skype? (adam.scripting)

Edited by Supreme_

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...