Jump to content

Cursor Help


Rhetoric

Recommended Posts

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

 

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

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