In Java, allows you to find out where the mouse in on the
screen, even when it is not over one of your apps. This has
similar function to MouseInfo.getPointerInfo in Java 1.7+.
This class will work in any version of Java.
It uses JNI and a DLL, so it only works on Windows.
You must install mouse.32.dll and mouse.64.dll somewhere on the path.
Then your programs can find out the x and y position of the
mouse, [(0,0 is the upper left of the screen] at any time by
calling:
Point p = com.mindprod.mouse.Mouse.getWhereMouseIsOnScreen()
Java and C source included.
You can test the program by typing:
java -cp C:\ com.mindprod.mouse.Mouse
Where C:\ in where you installed the com/mindprod/mouse
directory.
Keywords: mouse, java, getPointerInfo, position, co-ordinates, screen, location, mouse location, mouse position
|
Click to enlarge
|
Related programs in Web Development - Java & JavaScript |
Mihov ASCII Master
Show ASCII value of any key pressed in decimal or hex!
|
PDFComponent.com Java PDF Library
PDFComponent.com Java PDF Library to generate, merge, split PDF
|
jQuery Horizontal Menu Style 05
Create jQuery Horizontal Menu for your Website with beautiful effects easily!
|
Web Site Robot
Easy to use web site builder with blog, shopping cart, online photo album
|
Matrix ActiveX Component
Implement matrices for mathematical computations in your applications.
|
Perpetuum mobile
Perpetuum mobile highlights continually moving and rotating balls.
|
View Source Editor
Change the editor that you use for 'View Source' with Internet Explorer.
|
QRCode Encoder SDK/DLL
Generate QRCode barcode and save as BMP,GIF,PNG,JPG image using C/C++
|
jQuery CSS Menu Style 06
Create jQuery CSS Menu for your Website with beautiful effects easily!
|
Page Popup Maker
Create popups - page load/close, links, form buttons mouse over, image links.
|
|