JIntellitype Read Me
http://www.melloware.com/
Copyright 1999-2007 Emil A. Lefkof III
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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:
-> Copy the following files into your classpath
-> jintellitype.jar
-> JIntellitype.dll (or put in Windows/System32)
FOR DEVELOPERS:
-> To build you need Maven 2.0.7 or higher installed from Apache. Just run "mvn package" from the
directory where the pom.xml is located to build the project.
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 test/com/melloware/jintellitype/JIntellitypeTester.java for more info..
5. Acknowledgements
----------------
JIntellitype is distributed with a small number of libraries on which it depends.
Those libraries are:
-> Jakarta Commons Logging (http://jakarta.apache.org/commons/logging/)
Commons logging is used to provide Stripes with a logging mechanism that
does not tie it to a specific logging implementation. In reality, most
users will probably be using Log4J, and so will need to configure commons
logging to point at Log4J. A sample configuration file is included in
the example application at: examples/src/commons-logging.properties
Commons Logging is licensed under the Apache License Version 2.0, a copy
of which is included in lib/commons-logging.license
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.
Also a forum is set up at http://forum.melloware.com/index.php for discussion.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
jintellitype-1.3.1-dist.zip (26个子文件)
jintellitype-1.3.1
license.txt 9KB
JIntellitype.dll 30KB
pom.xml 10KB
jintellitype-1.3.1.jar 12KB
src
test
resources
log4j.properties 1KB
java
com
melloware
JIntellitypeTester.java 12KB
main
java
com
melloware
jintellitype
JIntellitype.java 14KB
JIntellitypeException.java 1KB
HotkeyListener.java 2KB
Main.java 3KB
JIntellitypeConstants.java 6KB
IntellitypeListener.java 2KB
cpp
JIntellitype.cpp 4KB
JIntellitype_private.h 715B
StdAfx.cpp 292B
JIntellitype.layout 847B
JIntellitypeThread.h 1KB
JIntellitypeHandler.cpp 9KB
JIntellitypeHandler.h 3KB
JIntellitype_private.rc 861B
StdAfx.h 775B
JIntellitype.dev 3KB
JIntellitypeThread.cpp 3KB
com_melloware_jintellitype_JIntellitype.h 1KB
Makefile.win 2KB
readme.txt 5KB
共 26 条
- 1
资源评论
- yudugeneral2012-12-07谢谢您的资源,解决了我很多问题!
- huoyoung2013-07-17JIntellitype组件,用着不错,可以随意注册系统热键,,两个主要方法,用起简单明了,,
- lfk_jery2012-12-09资源不错 不过好像不是最新的
- Eric_20092013-05-24非常好的东西,给了我很大帮助,赞一个!
wingerliwei
- 粉丝: 1
- 资源: 25
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功