Comments (9)
I need help ASAP since a long time i am trying, but not able to find the
workaround.
Thanks
Original comment by [email protected]
on 15 Apr 2013 at 8:21
from jintellitype.
I don't believe this is possible as both are treated like the same virtual key
code there is no way to distinguish NUMPAD_ENTER from the regular ENTER key.
Using ENTER as a hotkey was not really what Microsoft had intended the Hotkey
API for. It was meant for obscure combinations like CTRL+SHIFT+G etc.
Original comment by mellowaredev
on 15 Apr 2013 at 10:37
- Changed state: WontFix
from jintellitype.
Duplicate of this exact issue...
https://code.google.com/p/jintellitype/issues/detail?id=9
Original comment by mellowaredev
on 15 Apr 2013 at 10:38
from jintellitype.
Thanks for you reply,
Can you please suggest any solution for this issue apart from JIntellitype.
Original comment by [email protected]
on 15 Apr 2013 at 11:18
from jintellitype.
I don't think there is one other than maybe writing your own custom MFC code
against the WinAPI but even then I still don't think you can tell the two enter
keys apart.
So what I am saying is I don't think you can accomplish what you are trying to
accomplish.
Original comment by mellowaredev
on 15 Apr 2013 at 11:30
from jintellitype.
[deleted comment]
from jintellitype.
Hi Mellowaredev,
There is function public void registerHotKey(int identifier,int modifier,int
keycode)
With the following Parameters:
identifier - a unique identifier for this key combination
modifier - MOD_SHIFT, MOD_ALT, MOD_CONTROL, MOD_WIN from JIntellitypeConstants,
or 0 if no modifier needed
keycode - the key to respond to in Ascii integer, 65 for A
If you write another function where you just replace the keyCode with key's
unicode then I think user will be able to differentiate between Main Enter key
and Numpad Enter key
regards,
Rajeev
Original comment by [email protected]
on 18 Apr 2013 at 10:01
from jintellitype.
I don't think you are listening to me. What I am telling you it is not
possible to do what you want to do.
That is not how the WINAPI works. That is just the java side it then must get
translated into the Windows API call for RegisterHotkey which does not accept
Unicode it expects a Virtual Key Code.
Microsoft Documentation:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646309(v=vs.85).aspx
Here is the list of virtual key codes and there is only one VK_RETURN which is
the same for the NUMPAD Enter and regular ENTER.
http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx
Original comment by mellowaredev
on 18 Apr 2013 at 10:30
from jintellitype.
Thanks a lot for your reply.
Original comment by [email protected]
on 18 Apr 2013 at 11:15
from jintellitype.
Related Issues (20)
- The registration button does not support - , ; Such symbols seem to support only A-Z uppercase characters? HOT 2
- Can't load library dll from inside of the Spring Boot JAR application HOT 1
- Readme file should be written in Markdown HOT 2
- could i use this to listen to the mouse wheel pressed HOT 1
- Java 11 DLL is crashing... HOT 46
- 一些window10的问题?/Some window10 problems? HOT 1
- Load DLL's from inside JAR HOT 4
- JavaFX HOT 2
- 如何在两个不同应用中,同时注册相同的热键 HOT 1
- could not load DLL HOT 5
- NullPointerException in "JIntellitypeDemo.java" HOT 1
- JIntellitype64.dll can not be loaded correctly since 8u261 HOT 54
- The registration button is invalid in full-screen mode HOT 10
- Hotkey Distinguish KeyUp from KeyDown HOT 3
- Can it listen for the mouse? HOT 2
- Can't register slash and back slash key HOT 3
- Error thrown as a result of missing library HOT 3
- JIntellitype64.dll can't be found inside jar generated by Spring Boot HOT 6
- i can't understand intellitype and What can be achieved through it HOT 2
- when JIntellitypeDemo running and registerHotKey , some key does not work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jintellitype.