Robot shift Add - Java java.awt

Java examples for java.awt:Robot

Description

Robot shift Add

Demo Code


//package com.java2s;

import java.awt.Robot;
import java.awt.event.KeyEvent;

public class Main {
    private static void shiftAdd(Robot robot, int code) {
        robot.keyPress(KeyEvent.VK_SHIFT);
        robot.keyPress(code);// w  ww .j a  v a2  s . c om
        robot.keyRelease(code);
        robot.keyRelease(KeyEvent.VK_SHIFT);
    }
}

Related Tutorials