JIntellitype is a Java JNI library that provides an interface to Microsoft Intellitype keyboard commands and global hotkey registration in Windows applications. The library enables Java applications to respond to special media keys (Play, Pause, Stop, etc.) and register global hotkey combinations.
Important
This library is Windows-only as it uses Windows-specific API calls.
If you like this project, please consider supporting me ❤️
- Register global hotkey combinations that work system-wide in Windows
- Receive notifications for special media keys (Play, Pause, Stop, Next, Previous)
- Support for modifier keys (CTRL, ALT, SHIFT, WIN) in hotkey combinations
- Automatic DLL management (32/64 bit)
- Simple and intuitive API
- Thread-safe implementation
- Comprehensive error handling
<dependency>
<groupId>com.melloware</groupId>
<artifactId>jintellitype</artifactId>
<version>[VERSION]</version>
</dependency>
implementation 'com.melloware:jintellitype:[VERSION]'
The native DLLs are automatically extracted and loaded at runtime. No manual installation steps are required.
// Initialize JIntellitype
JIntellitype.getInstance().addHotKeyListener(identifier -> {
System.out.println("Hotkey pressed: " + identifier);
});
JIntellitype.getInstance().addIntellitypeListener(command -> {
System.out.println("Intellitype command: " + command);
});
// Register hotkeys
JIntellitype.getInstance().registerHotKey(1, JIntellitype.MOD_WIN, 'A'); // Windows + A
JIntellitype.getInstance().registerHotKey(2, JIntellitype.MOD_ALT + JIntellitype.MOD_SHIFT, 'B'); // Alt + Shift + B
// Clean up on exit
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
JIntellitype.getInstance().cleanUp();
}));
JIntellitype.MOD_ALT
- Alt keyJIntellitype.MOD_CONTROL
- Control keyJIntellitype.MOD_SHIFT
- Shift keyJIntellitype.MOD_WIN
- Windows key
APPCOMMAND_MEDIA_PLAY_PAUSE
- Play/PauseAPPCOMMAND_MEDIA_STOP
- StopAPPCOMMAND_MEDIA_NEXTTRACK
- Next TrackAPPCOMMAND_MEDIA_PREVIOUSTRACK
- Previous TrackAPPCOMMAND_VOLUME_MUTE
- MuteAPPCOMMAND_VOLUME_UP
- Volume UpAPPCOMMAND_VOLUME_DOWN
- Volume Down
See the JIntellitypeDemo class for a complete working example.
- Java JDK 8 or higher
- Apache Maven
- Visual Studio C++ (for native code compilation)
- Clone the repository
git clone https://github.com/melloware/jintellitype.git
- Build with Maven
mvn clean package
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
- Visit Melloware for additional information and support
- Report issues on GitHub Issues