devshift / jnativehook

Automatically exported from code.google.com/p/jnativehook
0 stars 0 forks source link

NativeHookDemo Example isn't working as it should #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. 
https://code.google.com/p/jnativehook/source/browse/trunk/src/java/org/jnativeho
ok/example/NativeHookDemo.java
2.
Copy code into Eclipse with JDK 7
3.
Click run, error at this line:
"GlobalScreen.getInstance().setEventDispatcher(new SwingExecutorService());"

Error reported:
"The method setEventDispatcher(NativeHookDemo.SwingExecutorService) is 
undefined for the type GlobalScreen"

What is the expected output? What do you see instead?
It to compile.

What version of the product are you using? On what operating system?
Windows 7 64bit. JNativeHook 1.1.4.

Please provide any additional information below.

If I comment out the line then the program compiles and displays, but there is 
no discernible event handling. 

The individual examples for moue,mousewheel and keyboard work fine :-)

Thank you

Original issue reported on code.google.com by wakatak...@gmail.com on 16 Dec 2013 at 9:37

GoogleCodeExporter commented 9 years ago
Are you compiling the trunk from src?  If so please use either the 1.1 branch 
or https://github.com/kwhat/jnativehook/ for the latest and greatest.

Original comment by a...@1stleg.com on 16 Dec 2013 at 9:40

GoogleCodeExporter commented 9 years ago
I believe you are mixing and matching 1.1 and 1.2 source.  The file you are 
looking for is here: 
https://code.google.com/p/jnativehook/source/browse/branches/1.1/src/java/org/jn
ativehook/example/NativeHookDemo.java 

Original comment by a...@1stleg.com on 16 Dec 2013 at 9:46

GoogleCodeExporter commented 9 years ago
Ah I see, I'll give it a go. By the way impressive response time :)

Original comment by wakatak...@gmail.com on 16 Dec 2013 at 10:07

GoogleCodeExporter commented 9 years ago
Ah wonderful that works fine, this library is exactly what my program needed :) 
Thank you for your time

Original comment by wakatak...@gmail.com on 16 Dec 2013 at 10:18