PDA

View Full Version : Moving/Clicking the mouse in Java



Jason2gs
06-25-2007, 04:44 PM
I can't seem to find out how to move/click the mouse using Java. Could someone please help me?

Also. Finding and clicking on an object ID? I've seen this in some of the Aryan scripts for MoparScape, but I can't seem to scale down to the right parts to get it to work in a separate script.

I'm very new to Java, but I'm very excited about learning :)

Thank you!

-Mike

Smartzkid
06-25-2007, 04:56 PM
:p To find/click on an object, you either have to use reflection or BCEL (or whatever the other bytecode engineering library is called...)

Jason2gs
06-25-2007, 05:00 PM
Ah, didn't know that :)

Is that what Javabots do? Find/Click on objects?

~alex~
06-26-2007, 10:26 PM
You can use reflection like a certain members only java tool, to scan through the client and find what you need about objects, but Ben and Solar and being very secretive about how they found what they need. Try googling it.

Greg
07-09-2007, 01:35 AM
the robot class

Jason2gs
07-09-2007, 05:49 AM
Thank you very much Greg :)

grindisbest
07-14-2007, 12:07 PM
Java likes to be a little messy with moving the mouse around.

n3ss3s
07-14-2007, 06:57 PM
Yes, java.awt.Robot
And, if you are very new to java, you need to put for example


Robot robott = new Robot();
and then when you use the mouse things put

robott.mouseMove(int x, int y);
Or other mouse thingz.

owned1112
09-28-2007, 03:49 PM
n3ss3s and Greg, I think he means like the javabots do :p

rscheater13
10-29-2007, 11:38 PM
Couldn't you also just make a new class so you would know more of what you could do with it?