![]() ![]() If you just want to download the XYLocator as a Mac OS X application, you can use this link: I hope you like the Mac application icon, I made it myself. Once you understand that you're looking at an image, the app is easy to use. ![]() This is because the program is written in Java, and I don't know any other way to track the cursor location from Java. Probably the only confusing part about the app is that I need to take a picture of the Desktop, and then display it to you in an image. Here's what the application looks like when you first launch it:Īnd here's what it looks like after you've clicked a point on screen: You can get another X/Y coordinate by following the same process, quit the app, minimize it, hide it, whatever. When you click, the image goes away, and the application window comes back, now displaying the X/Y position you clicked on, as well as the RGB value at that pixel location.You then click on that image to get the X/Y coordinates and RGB value of the cursor position.The dialog disappears, the app takes a picture of your desktop, and then displays that picture as an image.Start the app, which will display the dialog shown below.This is all available in the "Download" section below. I'm sharing the source code for this "Java on Mac OS X" application, including the entire project - which includes the Ant build script I use to build Java applications into native Mac OS X applications. ![]() I've used this application for various reasons, including determining the location of something on screen, determining the width or height between two points, or getting the RGB value of a pixel on screen. As I go through some old applications I wrote for various purposes, but never released, I thought I'd share the source code for a Java program that you can use to get the x/y coordinates or the mouse cursor (pointer) and RGB value of the pixel at that location. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |