Keyboard icon indicating copy to clipboard operation
Keyboard copied to clipboard

☕️ A simple Java Library to send commands to the Keyboard ⚙️⌨️

⌨️ Keyboard ⌨️

A Simple Java Library for controlling the Keyboard, it is:

  • Easy to use
  • Powerful
  • And has many Functions

I searched long to find a simple Keyboard Library for Java but I have found nothing that fits, so I wrote a simple Java Library to access the Keyboard.

📝 Example 📝

(As an example, I used it to program a game controller with Arduino (JArduino).)

import java.awt.AWTException;
import java.util.ArrayList;

import com.sun.glass.events.KeyEvent;

import Keyboard.Keyboard;

public class Main {

	static Keyboard keyboard;
	
	public static void main(String[] args) throws AWTException, InterruptedException {
		keyboard = new Keyboard();
		ArrayList keyyy = new ArrayList<KeyEvent>();
		keyboard.type("Cool, ");
		keyboard.type("I can write this in just one line");
		keyboard.press(KeyEvent.VK_WINDOWS);
	}
}

Binance Ready to give crypto a try ? buy bitcoin and other cryptocurrencies on binance