![]() |
|
|
#2 |
|
Advanced Member
Join Date: Apr 2006
Location: London
Posts: 2,154
My Garage: - BMW E46 ///M3 Convertible - BMW E39 535i - BMW E31 850CSi - BMW E36 328i - BMW E30 320i ![]() |
nice find.
DllImport("user32.dll"). This is the first line that will be needed. In Java, you would write System.loadLibrary("user32.dll"); This will give access to the SetWindowsHookEx. I have found a couple of Java COM bridges that give easy access to this. The first is called JACOB, which is a fairly recent open source initiative. And the other is an old one called Java2Com by IBM, but it has a nice feature that recreates the COM object in Java objects for you (using a generator). Do you fancy writing the windows hooks processor for Velocity, to process key and mouse events, and create a listener mechanisms for all plugins to use? |
|
__________________
Current: [BMW Nav Research]|[BMW E46 ///M3 Convertible] Previous: [BMW E31 850CSi]|[BMW E39 535i]|[BMW HVAC Research]|[IBUS Scrolling Text]|[BMPuter]|[Velocity]|[TomTom]|[Vision]|[Space Navigator Driver]|[Super Fast Boot] |
|
|
|
|
|
|
#3 |
|
Advanced Member
|
I've nearly got this working now. I just need to get the user defined variables to become the hooked key. I've asked how to on the page I linked to. It's also possible to stop the keys being used else where. I'm trying to work out if it's a good or bad thing. Maybe with the JNI it's possible to unblock them if you're on a text-input screen which velocity would know?
|
|
__________________
~Rob - Proving more posts don't mean more knowledge
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
|