Re: [JNI] Catch Ctrl+Mouseclick on Windows?
From: Yu SONG (tips_at_mi6.gov.uk)
Date: 05/11/04
- Next message: PenBlast: "Using TomCat as an Email Server"
- Previous message: Digital Puer: "returned data from dispose()'d JDialog"
- In reply to: watzlaw wutz: "[JNI] Catch Ctrl+Mouseclick on Windows?"
- Next in thread: Pasturel: "Re: [JNI] Catch Ctrl+Mouseclick on Windows?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 11 May 2004 00:07:40 +0100
"watzlaw wutz" <watzlawwutz@gmx.net>
> I currently work on a kind of gpl-clone of www.bablylon.com, which is
> implemented in java. To embed my application into windows i need to
> register hotkeys together with mouse-clicks. I want to start my
> application to work if the user e.g. presses Ctrl and clicking with the
> mouse. This is easy as long the application has the focus. If this is
> not the case i think it is only possible using JNI.
> Unfortunately (i am a more or less c++newbie and) i can't find any free
> libary which would help me. There is only http://www.jniwrapper.com,
> which seems to handle tasks like this, but it is commercial and i don't
> think that i could get their agreement to use their libary in a
> gpl-licensed software (also with buying a lisence).
> So i would be very, very happy if someone of you could give me an idea
> of how to create my the .dll and do the communication with java. It
> would also help me a lot if you could me send some links, because i
> didn't find much using google about java-jni-hotkeys-with-mouseclicks.
>
> Please excuse my bad english. :-)
>
> greetings,
> Holger Brandl
You'd better look for a "hotkeys-with-mouseclicks" solution purely written
in C/C++ (plenty on the web),
and then convert it into JNI by yourself.
If I were you, I would write a windows interface in C/C++ and run the java
code in the dark background.
-- Song More info.: http://www.dcs.warwick.ac.uk/~esubbn/
- Next message: PenBlast: "Using TomCat as an Email Server"
- Previous message: Digital Puer: "returned data from dispose()'d JDialog"
- In reply to: watzlaw wutz: "[JNI] Catch Ctrl+Mouseclick on Windows?"
- Next in thread: Pasturel: "Re: [JNI] Catch Ctrl+Mouseclick on Windows?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|