Giter Site home page Giter Site logo

idouble / keyboard Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 3.0 707 KB

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

License: MIT License

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

keyboard's Introduction

⌨️ 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

keyboard's People

Contributors

idouble avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

keyboard's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.