SRL Archive - Java Help and Tutorials

Moving/Clicking the mouse in Java


Jason2gs

2007-06-25 12:44:55

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

2007-06-25 12:56:14

: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

2007-06-25 13:00:23

Ah, didn't know that :)

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

~alex~

2007-06-26 18:26:30

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

2007-07-08 21:35:10

the robot class

Jason2gs

2007-07-09 01:49:16

Thank you very much Greg :)

grindisbest

2007-07-14 08:07:05

Java likes to be a little messy with moving the mouse around.

n3ss3s

2007-07-14 14:57:26

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

2007-09-28 11:49:00

n3ss3s and Greg, I think he means like the javabots do :p

rscheater13

2007-10-29 19:38:48

Couldn't you also just make a new class so you would know more of what you could do with it?