Code Monkey home page Code Monkey logo

jintellitype's Introduction

Maven Javadocs License

JIntellitype

JIntellitype Logo

Contents

  1. Overview
  2. Features
  3. Installation
  4. Quick Usage
  5. Acknowledgements
  6. Feedback

1.Overview

JIntellitype is an API for interacting with Microsoft Intellitype keyboard commands as well as registering for Global Hotkeys in your application. The API is a Java JNI library that uses a DLL to do all the communication with Windows. This library ONLY works on Windows.

Have you ever wanted to have CTRL+SHIFT+G maximize your Swing application on the desktop even if that application did not have focus? Now you can by registering a Windows Hotkey combination your application will be alerted when the combination you select is pressed anywhere in Windows.

Have you ever wanted to react to those special Play, Pause, Stop keys on some Microsoft and Logitech keyboards? Even some laptops now have those special keys built in and if you want your application to "listen" for them, now you can!

2.Features

  • Can register global hotkey combinations in Windows.

  • Application is notified even if it does not have focus.

  • Can react to those Play, Pause, Stop, Next, Forward Media keys like Winamp.

  • Very little code, easy to use API.

  • Examples included in JIntellitypeTester.java.

3.Installation

FOR USERS:

The 32/64 bit dlls get extracted automatically.

FOR DEVELOPERS:

  • To build you need Apache Maven or higher installed from Apache. Just run "mvn package" from the directory where the pom.xml is located to build the project.

  • To build the C++ code you need Visual Studio C++.

4.Quick Usage

       // Create JIntellitype
       ...
        JIntellitype.getInstance().addHotKeyListener(new HotKeyListener() {...);
        JIntellitype.getInstance().addIntellitypeListener(new IntellitypeListener() {...);
       ...

        // Assign global hotkeys to Windows+A and ALT+SHIFT+B
        JIntellitype.getInstance().registerHotKey(1, JIntellitype.MOD_WIN, (int)'A');
        JIntellitype.getInstance().registerHotKey(2, JIntellitype.MOD_ALT + JIntellitype.MOD_SHIFT, (int)'B');

        // listen for hotkey
        public void onHotKey(int aIdentifier) {
           if (aIdentifier == 1)
             System.out.println("WINDOWS+A hotkey pressed");
           }
        }

        // listen for intellitype play/pause command
        public void onIntellitype(int aCommand) {
            switch (aCommand) {
                case JIntellitype.APPCOMMAND_MEDIA_PLAY_PAUSE:
                    System.out.println("Play/Pause message received " + Integer.toString(aCommand));
                break;
                default:
                    System.out.println("Undefined INTELLITYPE message caught " + Integer.toString(aCommand));
                break;
            }
        }

       // Termination
       ...
       JIntellitype.getInstance().cleanUp();
       System.exit(0);

See demo at JIntellitype Demo Application for more info..

5.Acknowledgements

JIntellitype is distributed with a small number of libraries on which it depends.

Those libraries are:

  • None currently

6.Feedback

Your feedback on JIntellitype (hopefully constructive) is always welcome.

Please visit http://www.melloware.com/ for links to browse and join mailing lists, file bugs and submit feature requests.

jintellitype's People

Contributors

melloware avatar dependabot[bot] avatar bjoernpetersen avatar pakotzy avatar rocketmadev avatar jjybdx4il avatar

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.