melloware / jintellitype Goto Github PK
View Code? Open in Web Editor NEWJIntellitype is a Java API for interacting with Microsoft Intellitype commands as well as registering for Global Hotkeys in your Java application.
License: Apache License 2.0
JIntellitype is a Java API for interacting with Microsoft Intellitype commands as well as registering for Global Hotkeys in your Java application.
License: Apache License 2.0
This behavior should be identical but it is not...
// this doesn't work at all
JIntellitype.getInstance().registerHotKey(1, "CTRL+ALT+F11");
// this works fine
JIntellitype.getInstance().registerHotKey(1, JIntellitype.MOD_CONTROL +
JIntellitype.MOD_ALT, 122);
I believe the problem might be in the String parsing of getKey2KeycodeMapping()
but need to investigate.
Original issue reported on code.google.com by mellowaredev
on 4 Nov 2010 at 10:13
我在第一个应用中注册了热键 ctrl+c,
JIntellitype.getInstance().registerHotKey(ctrl_c, JIntellitype.MOD_CONTROL, 'C'); .addHotKeyListener
第二个应用中同时添加了这段代码,发现不起作用
What steps will reproduce the problem?
1. Visit http://code.google.com/p/jintellitype/
2. Try to click "Quick Start Guide" link
What is the expected output? What do you see instead?
Expected to see a quick start guide. Instead, was redirected to current page
http://code.google.com/p/jintellitype/
Please provide any additional information below.
Suggest either moving content from quick start guide into wiki or project
description, and/or removing the dead link.
Original issue reported on code.google.com by [email protected]
on 26 Jul 2013 at 5:06
With Spring Boot, to load a resource file from inside of the JAR package you must use ResourceLoader which returns InputStream, because any other access method will cause IOException while launching from outside of the IDE.
Since JIntellitype is already using InputStream under the hood, it will be nice to be able to provide it manually for better flexibility as requested in #16
Can I add support? Or what should I do if I already do?
In jintellitype , there are two method - onHotKey and onIntellitype.
I do understand what can do in onHotKey , it listen keybords and when i press some keys the program will react it .
But i can understand what the intellitype does , i don't know what can be achieved through onItellitype method,and don't know how to touch it in JIntellitypeDemo.java。
Maven repository not up to date:
http://mvnrepository.com/artifact/com.melloware/jintellitype
Original issue reported on code.google.com by [email protected]
on 26 Jul 2011 at 7:31
In Eclipse.
jintellitype-1.3.8.jar and JIntellitype.dll are in the project folder.
jintellitype-1.3.8.jar has been added into the buildpath of the project.
jintellitype-1.3.8-sources.jar has also been linked to the jar file.
/-
|-.settings (subfiles omited)
|-bin (subfiles omited)
|-scr
|-com
|--melloware
|---JIntellitypeTester.java
|.classpath
|.project
|JIntellitype.dll
|jintellitype-1.3.8.jar
|jintellitype-1.3.8-javadoc.jar
|jintellitype-1.3.8-sources.jar
Placed JIntellitypeTester.java from the test folder of the zip downloaded from
Jintellitype into src/com/melloware.
i.e. package com.melloware;
Run and "Could not load JIntellitype.dll from local file system or from inside
JAR" error is thrown.
What steps will reproduce the problem?
1. placing the dll file in all the locations asked to no avail, root folder,
system32, com/melloware/jintellitype etc...
2. 32-bit, 64-bit dll after the renaming does not help
What is the expected output? What do you see instead?
Exception in thread "main" com.melloware.jintellitype.JIntellitypeException:
Could not load JIntellitype.dll from local file system or from inside JAR
at com.melloware.jintellitype.JIntellitype.<init>(JIntellitype.java:114)
at com.melloware.jintellitype.JIntellitype.getInstance(JIntellitype.java:174)
at com.melloware.jintellitype.JIntellitype.checkInstanceAlreadyRunning(JIntellitype.java:326)
at com.melloware.JIntellitypeTester.main(JIntellitypeTester.java:85)
Caused by: java.lang.NullPointerException
at com.melloware.jintellitype.JIntellitype.fromJarToFs(JIntellitype.java:145)
at com.melloware.jintellitype.JIntellitype.<init>(JIntellitype.java:105)
... 3 more
What version of the product are you using? On what operating system?
jintellitype-1.3.8
Windows 7 64-bit
eclipse 32-bit
JavaSE-1.6
Please provide any additional information below.
Please help me out to solve this issue. I did search in google and came across
this post.
http://forum.melloware.com/viewtopic.php?f=4&t=9609
I tried to search how to add a dll to the classpath but was unable to find a
way. I'm not sure if I am even supposed to be adding the dll to the path or to
proceed in which direction.
Please guide me to solve this issue. Thank you.
Original issue reported on code.google.com by [email protected]
on 15 Aug 2013 at 10:46
it's a briliant project! simple API, easy to use. But im curious whether i can listen to the mouse wheel? Thx 1st! 👍
It was when I was using my program equipped with jintellitype
on other's computer when it got crashed, telling me that some dependencies are missing, causing a unexpected error. I think it may require the latest vcrt
. As I'm still learning C++, I'm sure one day I will use gcc to compile it and may refactor some code that can be optimized.
如何区分单个按键的按下和抬起?
举例 :JIntellitype.getInstance().registerHotKey(UserKeyBoardEnum.DUNHAO.getKeyValue(), 0,
UserKeyBoardEnum.DUNHAO.getKeyValue());
0 表示 按下和抬起全部都执行
那么如何单独区分呢?
User wrote and need to use the Accent character
Original issue reported on code.google.com by mellowaredev
on 12 Aug 2011 at 2:09
I use JIntellitype on my PC with JDK 7u9 64-bit and JIntellitype brings a
64-bit DLL of it´s own, so I guess the following comment isn´t correct
anymore, is it?
/**
* Checks to make sure the OS is a Windows flavor and that the JIntellitype
* DLL is found in the path and the JDK is 32 bit not 64 bit. The DLL
* currently only supports 32 bit JDK.
* <p>
* @return true if Jintellitype may be used, false if not
*/
public static boolean isJIntellitypeSupported() {
Original issue reported on code.google.com by [email protected]
on 19 Oct 2012 at 8:59
when the demo running , some key does not work , like ' c ' , ' ; ' in keybord.
system version : win 11.
I post this message in forum already.
I did upgrade from JIntellitype 1.3.4 to 1.3.5. Did replace JIntellitype.dll
and jintellitype-1.3.5.jar and now I am getting exception:
java.lang.NullPointerException
com.melloware.jintellitype.JIntellitypeException: java.lang.NullPointerException
at com.melloware.jintellitype.JIntellitype.<init>(JIntellitype.java:117)
at com.melloware.jintellitype.JIntellitype.getInstance(JIntellitype.java:173)
at clipcomrade.gui.MainScreen.addGlobalHotkey(MainScreen.java:189)
at clipcomrade.gui.MainScreen.<init>(MainScreen.java:110)
at clipcomrade.Clipcomrade$1.run(Clipcomrade.java:84)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.melloware.jintellitype.JIntellitype.fromJarToFs(JIntellitype.java:144)
at com.melloware.jintellitype.JIntellitype.<init>(JIntellitype.java:103)
... 12 more
Original issue reported on code.google.com by [email protected]
on 2 Dec 2010 at 11:42
Hi,
please add overloading method JIntellitype.setLibraryLocation(File).
Original issue reported on code.google.com by [email protected]
on 11 Sep 2011 at 1:17
After this line, "is" is null...
is = ClassLoader.getSystemClassLoader().getResourceAsStream(jarPath);
"jarPath" is "com/melloware/jintellitype/JIntellitype.dll"
...the next access to "is" fails with a NullPointerException
while ((bytesRead = is.read(buffer)) != -1) {
Original issue reported on code.google.com by [email protected]
on 19 Oct 2012 at 8:55
Can't register slash and back slash key
JIntellitype.getInstance().registerHotKey(1, 0, KeyEvent.VK_SLASH);
JIntellitype.getInstance().registerHotKey(2, 0, KeyEvent.VK_BACK_SLASH);
It doesn't work :(
and using JavaFX.
The code failed to load the dll from jar because the jar file on maven central does not contain the dll.
What steps will reproduce the problem?
1. registered a hot key for enter key from numpad keyset/area
2.run the program
What is the expected output? What do you see instead?
Only numpad enter key should be a global hot key not the main enter key.
What version of the product are you using? On what operating system?
1.3.8
Please provide any additional information below.
regards
Rajeev
Original issue reported on code.google.com by [email protected]
on 15 Apr 2013 at 8:20
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.melloware.jintellitype.JIntellitypeDemo.main(JIntellitypeDemo.java:86)
Caused by: com.melloware.jintellitype.JIntellitypeException: Could not load JIntellitype.dll from local file system or from inside JAR
at com.melloware.jintellitype.JIntellitype.loadLibrary(JIntellitype.java:143)
at com.melloware.jintellitype.JIntellitype.(JIntellitype.java:63)
... 1 more
Caused by: java.io.IOException: FromJarToFileSystem could not load DLL: com/melloware/jintellitype/windows/JIntellitype64.dll
at com.melloware.jintellitype.JIntellitype.fromJarToFs(JIntellitype.java:181)
at com.melloware.jintellitype.JIntellitype.loadLibrary(JIntellitype.java:140)
... 2 more
Caused by: java.lang.NullPointerException
at com.melloware.jintellitype.JIntellitype.fromJarToFs(JIntellitype.java:177)
... 3 more
What steps will reproduce the problem?
1. Register enter key using JIntelltype in a simple program.
2. Execute the program and try using the Keypad enter key and the other enter
key(may be CR). Both the keypresses provide the same result.
3. Can you please provide some means to distinguish between the two? I think
Java also provides same keycode for the enter keys on keyboard.
What is the expected output? What do you see instead?
My application needs to perform action only on keypad enter button and not on
the other enter button.
What version of the product are you using? On what operating system?
JIntelltye version: 1.3.6
OS : Windows 7 32 bit professional.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 5 Nov 2012 at 2:01
JIntellitype类中:line 131:System.load(extractedLibrary.getAbsolutePath());,在配置Native Library Path后,依然提示could not load DLL;
在我修改使用System.loadLibrary("JIntellitype64");,就可以了,请问是否可以?
参数可获取String libraryName变量去电.dll,不可以带扩展名
Using a txt file will result in an unsightly layout and unclear.
Therefore you should use Markdown.
(Sorry,I may not be too polite, please forgive me.)
When I updated my JRE to 8u261 or 8u271, my application couldn't run. The specific appearance is, when I fire it up, my system tray icon could be loaded correctly, but then it will exit with code-1073741819 (0xC0000005). In Windows event viewer, I got the information below:
`-
If that means I could only use 8u251?
Is there a solution to the failure of registration buttons in full screen mode, such as in LOL
What steps will reproduce the problem?
1. Add JAR to Netbeans project
2. Make sure DLL is in project folder
3. Run through Netbeans IDE
What is the expected output? What do you see instead?
Expected: Running with hotkey support
Instead:
Exception in thread "AWT-EventQueue-0"
com.melloware.jintellitype.JIntellitypeException: Could not load
JIntellitype.dll from local file system or from inside JAR
at com.melloware.jintellitype.JIntellitype.<init>(JIntellitype.java:114)
at com.melloware.jintellitype.JIntellitype.getInstance(JIntellitype.java:177)
at marketbot.SettingsWindow.<init>(SettingsWindow.java:32)
at marketbot.MarketBot$2.run(MarketBot.java:129)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.io.IOException: FromJarToFileSystem could not load DLL:
com/melloware/jintellitype/JIntellitype.dll
at com.melloware.jintellitype.JIntellitype.fromJarToFs(JIntellitype.java:150)
at com.melloware.jintellitype.JIntellitype.<init>(JIntellitype.java:105)
... 17 more
Caused by: java.lang.NullPointerException
at com.melloware.jintellitype.JIntellitype.fromJarToFs(JIntellitype.java:146)
... 18 more
What version of the product are you using? On what operating system?
I'm using v1.3.9 on Windows 8.1.
Please provide any additional information below.
The following code is what I am using:
File f = new
File("C:\\Users\\Christopher\\Documents\\NetBeansProjects\\MarketBot\\jintellity
pe-1.3.9\\JIntellitype.dll");
if (f.exists())
System.out.println("Library exists!");
JIntellitype.setLibraryLocation(f);
initComponents();
JIntellitype.getInstance();
JIntellitype.getInstance().registerHotKey(1, JIntellitype.MOD_CONTROL, (int)'0');
It worked all day yesterday, but after a computer reboot, it has stopped. I
have no idea what a reboot could have changed...
Also related:
http://stackoverflow.com/questions/24481260/problems-adding-native-dlls-to-java-
runtime-jintellitype
Original issue reported on code.google.com by [email protected]
on 30 Jun 2014 at 12:07
我的java版本是11.0.1, 在windows10_1809 'regHotKey(identifier, modifier, keycode);'报错.
然后我尝试了虚拟机使用windows7版本是正常的.
My java version is 11.0.1, in windows10_1809 'regHotKey(identifier, modifier, keycode); 'Report error.
Then I tried the virtual machine using the windows7 version is normal.
The JIntellitype.setLibraryLocation(File)
method checks whether a file already has an absolute path and if not, generates the absolute path and stores it. If the file already is absolute however, it is simply ignored and not stored.
A workaround for this bug is calling JIntellitype.setLibraryLocation(String)
with the file's absolute path.
JIntellitype is really awesome product!
I found one small bug in this method:
com.melloware.jintellitype.JIntellitype.swingToIntelliType(int)
when I send there 520 as a parameter (ALT_MASK & ALT_DOWN_MASK), method returns
2, but should return 1. Changing += to &= solve it
Original issue reported on code.google.com by mellowaredev
on 7 Aug 2011 at 3:22
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.