Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/idouble/keyboard

☕️ A simple Java Library to send commands to the Keyboard ⚙️⌨️
https://github.com/idouble/keyboard

api easy easy-to-understand easy-to-use fast free jar java java-api java-library keyboard library mit mit-license multi-platform multiple-monitors simple

Last synced: 2 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# ⌨️ 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).**](https://github.com/AYIDouble/IOT-Arduino-Game-Controller-Java))

```
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();
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](Images/binance.jpg)