Re: [JNI] Catch Ctrl+Mouseclick on Windows?

From: Yu SONG (tips_at_mi6.gov.uk)
Date: 05/11/04


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/


Relevant Pages

  • Re: In the Shallow End
    ... Yes, with Apple finally getting in there, technology is finally moving along nicely again. ... What they like to do is use the Windows desktop as data gathering frontends to these operations. ... They had other plans for Java, ... They make computers for the elite. ...
    (comp.sys.mac.advocacy)
  • What types of variables can be passed with JNI?
    ... My application is written mainly in Java, but it uses C/C++ through ... I purchased a OCR library which receives calls form the Java side using ... if JNI is up to the task. ... as said above, I know I can pass an int or a string ...
    (comp.lang.java.programmer)
  • Re: IE6 javascript & active x not working
    ... > I'm trying to fix a problem on a Windows XP SP1 Compaq computer. ... Where to get the JAVA VM ... Sun also offers an automatic download and install of the 1.4 Java plug-in ... ActiveX problems in IE ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: [JNI] Catch Ctrl+Mouseclick on Windows?
    ... > of how to create my the .dll and do the communication with java. ... I did this kind of JNI programm. ... Under Windows, i use the GetAsyncKeyState functiun but it's not obvious ...
    (comp.lang.java.programmer)
  • Re: IE6 cannot access secured sites after SP2 install
    ... I installed Windows script 5.6 ... >To download Java VM for XP: ... >Windows Update/Enable the Windows Update Catalog. ... >Sun also offers an automatic download and install of the ...
    (microsoft.public.windows.inetexplorer.ie6.browser)