blackneos940
Active Member
Hey guys. :3 It is I, black! :3 Anywho, it seems that despite all my years of trying to understand Programming, I still have a hard time integrating existing Code into a Program I'm writing... :< Take for example this:
I have NO idea how to make that work in the context of my Code. Specifically, it's Java, which I should know enough of by now to make this work..... Take this Code for example, the Java File I'm trying to get to Compile:
Man, you'd think after all these years, I'd be able to make this work. Thanks for any help, guys. Have a good day, ok...? :3
Code:
public static void click(int x, int y) throws AWTException{
Robot bot = new Robot();
bot.mouseMove(x, y);
bot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
bot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
}
I have NO idea how to make that work in the context of my Code. Specifically, it's Java, which I should know enough of by now to make this work..... Take this Code for example, the Java File I'm trying to get to Compile:
Code:
import java.awt.Robot;
public class Click_Mouse
{
public static void click(int x, int y) throws AWTException
{
Robot bot = new Robot();
bot.mouseMove(x, y);
bot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
bot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
}
public static void main()
{
bot();
}
}
Man, you'd think after all these years, I'd be able to make this work. Thanks for any help, guys. Have a good day, ok...? :3