Baked0420
2010-08-16 12:00:24
I'm on a mac and trying to make a macro. Since simba doesn't support Macs (yet?), I downloaded Eclipse and am using java to make a simple bot. I know a bit of java and how to do most the things I need for this bot. The only thing I don't know know is how to find a mouse's coordinates. I've tried google searching and I couldn't find good help. There's supposedly a Robot.getX() and Robot.getY() but when I tried using it in eclipse I got: "The method getX() is undefined for the type Robot", even though it is in the Java API. Any help is appreciated.
EDIT: I don't see the getX() and getY() anymore, I could've swore I saw it in there before. But anyway, I used to just use guess and check, I have once in the past months ago to make a program open IE, but guess and check took way too long, I'm looking for an easier way.
EDIT2: getX and getY are in MouseEvent. Not positive yet how I'm gonna be able to use it, but I'm going to try to figure it out on my own, I'll update this post if I figure it out, until then help would still be appreciated.
EDIT: I don't see the getX() and getY() anymore, I could've swore I saw it in there before. But anyway, I used to just use guess and check, I have once in the past months ago to make a program open IE, but guess and check took way too long, I'm looking for an easier way.
EDIT2: getX and getY are in MouseEvent. Not positive yet how I'm gonna be able to use it, but I'm going to try to figure it out on my own, I'll update this post if I figure it out, until then help would still be appreciated.