Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ru.first;
- import java.awt.event.*;
- import java.awt.Robot;
- public class test {
- public static void main(String args[]) {
- Robot bot = null;
- try {
- bot = new Robot();
- } catch (Exception failed) {
- System.err.println("Failed instantiating Robot: " + failed);
- }
- int mask = InputEvent.BUTTON1_MASK;
- bot.mouseMove(x, y);
- bot.mousePress(mask);
- bot.mouseRelease(mask);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement