Jintellitype
JIntellitype is a Java API for interacting with Microsoft Intellitype commands as well as registering for Global Hotkeys in your Java application.
Install / Use
/learn @melloware/JintellitypeREADME
JIntellitype
</div>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 ❤️
Table of Contents
Features
- 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
Installation
Maven
<dependency>
<groupId>com.melloware</groupId>
<artifactId>jintellitype</artifactId>
<version>[VERSION]</version>
</dependency>
Gradle
implementation 'com.melloware:jintellitype:[VERSION]'
The native DLLs are automatically extracted and loaded at runtime. No manual installation steps are required.
Usage
Basic Setup
// 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();
}));
Supported Modifier Keys
JIntellitype.MOD_ALT- Alt keyJIntellitype.MOD_CONTROL- Control keyJIntellitype.MOD_SHIFT- Shift keyJIntellitype.MOD_WIN- Windows key
Supported Media Commands
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
Examples
See the JIntellitypeDemo class for a complete working example.
Building from Source
Prerequisites
- Java JDK 8 or higher
- Apache Maven
- Visual Studio C++ (for native code compilation)
Build Steps
- Clone the repository
git clone https://github.com/melloware/jintellitype.git
- Build with Maven
mvn clean package
Releasing
- Go to the
Actionstab in GitHub - Select the "Release" workflow
- Click "Run workflow"
- You will be prompted for:
- Branch (default to
master) - Version to release (e.g. 8.0.2)
- Next development version (e.g. 8.0.3-SNAPSHOT)
- Branch (default to
- The workflow will automatically:
- Set the release version in all pom.xml files
- Create and push a release tag
- Build and deploy artifacts to Maven Central
- Update version to the next development version
Contributing
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.
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Support
- Visit Melloware for additional information and support
- Report issues on GitHub Issues
Related Skills
node-connect
339.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
