|
|
|
Categories :
Web Development > Java & JavaScript
|
|
Mouse 1.3
|
|
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.5+. This class will work in any version of Java. It uses JNI and a DLL.
|
| |
Description From Publisher
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.5+.
This class will work in any version of Java.
It uses JNI and a DLL, so it only works on Windows.
You must install the nativemouse.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.
The nativemouse.dll must be on the path, e.g. in the current
directory. With JDK 1.5, the DLL can be in the jar, so long
as it has no package path.
Supported OS
Win98,WinME,WinNT 4.x,Windows2000,WinXP,Windows2003,Windows Vista Starter,Window
Related Keywords
mouse mouse java java getPointerInfo getPointerInfo position position co-ordinates co-ordinates screen screen location location mouse location mouse location mouse position mouse position
|
|
Latest Java & JavaScript Realted Tools:
LEDataStream 1.8
Little-endian replacements for DataInputStream, DataOutputStream and RandomAccessFile. They work just like DataInputStream, DataOutputStream and RandomAccessFile except they work with little-endian binary data. |
KeyPlayer 1.4
Java Keystroke and Mouse Event Tutor. Application to let you experiment to learn how mouse and keystroke events work. Output appears on the console. Just click the mouse or hit keystrokes and watch what details of the events generated. |
InWords 4.0
Java code to converts number to words in any of 15 languagues. Useful for writing cheques or legal documents. |
HunkIO 1.6
Java classes to include in your own programs. They let you read or write a file in one fell swoop into RAM. It also includes createTempFile and PrintWriterPlus. |
Holiday Calculatior 3.9
Calculates when various holidays occur in any given year BC or AD. Designed to be cannibalised to include the calculation routines in your own programs. It can also be used standalone It currently calculates about 50 holidays. |
FileFilters 2.3
FilenameFilters you can use in your own Java programs with File.list( FilenameFilter f ). They can also be used standalone as fancy dir commands. Also includes CommandLine to parse command line and collects directory trees. |
FileTransfer 2.5
Includes classes to let you copy, download and upload files from within a Java program. Also contains a command-line utility to download files. Usually you embed these classes in your own program rather than using them standalone. |
FileTimes 1.8
Read and set Windows file/dir times from Java: Create/LastModified/LastAccessed. Create time is when the file was first written. LastModified is when the file was last written. Accessed time is when the file was last read or written. |
FileIO 5.6
I/O teaching tool that generates sample Java source code to do 378 types of I/O to read or write the console, a sequential file, a random access file, a String, an array of characters, an array of bytes, URL, HTTP CGI GET/POST, Socket or Pipe. |
Encodings 1.6
Applet to list all supported encodings (character sets) supported by your browser/java. |
CSVReader/Writer 2.8
Java classes you can use standalone or embed in your own programs to Read, write, align and pack comma, tab and semicolon-separated variable files, commonly known as CSV files. |
CreditCard Validator 1.8
The CreditCard Validator will help you tell: (1) if a credit card number is valid (2) which credit card vendor handles that number. It validates the prefix and the checkdigit. It does *not* contact the credit card company. |
Comparators 1.4
Java classes to include in your programs. Includes: HTMLArrayComparator.java compares two arrays of Strings of HTML, ignoring embedded tags. HTMLComparator.java compares two Strings of HTML, ignoring embedded tags. |
|
|