November 25, 201510 yr http://osbot.org/api/org/osbot/rs07/api/Mouse.html http://docs.oracle.com/javase/7/docs/api/java/awt/Graphics2D.html
November 25, 201510 yr Im trying to add something like this. Any help is appreciated. Something like this should do it: // Set colour to white g.setColor(Color.white); // Get current mouse position Point mousePoint = getMouse().getPosition(); // Draw a rectangle starting at x-10, y-10, with width and height of 20 g.drawRect(mousePoint.x - 10, mousePoint.y - 10, 20, 20); // Draw a line from top of screen (0), to bottom (500), with mouse x coordinate g.drawLine(mousePoint.x, 0, mousePoint.x, 500); // Draw a line from left of screen (0), to right (800), with mouse y coordinate g.drawLine(0, mousePoint.y, 800, mousePoint.y);
November 25, 201510 yr Im trying to add something like this. Any help is appreciated. Lol'd at the image *cough*http://osbot.org/forum/topic/87033-viliuks-smplringsodueling/ https://i.gyazo.com/c59be2b02f7c4ee5849e8960848b2600.png *cough* But do as explv said, its literally the same thing I have or you could have just asked me how to do it Edited November 25, 201510 yr by Viliuks
November 25, 201510 yr Author Lol'd at the image *cough*http://osbot.org/forum/topic/87033-viliuks-smplringsodueling/ https://i.gyazo.com/c59be2b02f7c4ee5849e8960848b2600.png *cough* But do as explv said, its literally the same thing I have or you could have just asked me how to do it I did ask you lmao, you said do getMouse.setColor; or some shit. anyway Thanks for the help guys i got it done.
November 25, 201510 yr I did ask you lmao, you said do getMouse.setColor; or some shit. anyway Thanks for the help guys i got it done. I don't recall you asking me? Eitherway, I don't bite ask me stuff n things EDIT: nvm I remember, but you didn't specify how you want it to be drawn, I thought you meant to set the default osbots cursor ;-; Edited November 25, 201510 yr by Viliuks
Create an account or sign in to comment