Solved

Moving the mouse cursor programmatically

Posted on 2001-07-27
1
1,069 Views
Last Modified: 2007-12-19
How can I move the mouse cursor *programmatically* in Java?
(NOTE: diakov has already answered this question for me. Please, don't answer me again. The question has been posted just so that diakov could claim the points he deserves.)
0
Comment
Question by:Biss
1 Comment
 
LVL 8

Accepted Solution

by:
diakov earned 100 total points
ID: 6326047
Ok, for the record,

in JDK 1.3 there is the Robot class that saves you time in faking mosue movements and key strokes. What it essentially does (and we had to do by our selves for the lesser JDK versions) is packaging of appropriate AWT event and pushing them into the system queue.

Possible use:

Marcro recording. Keystroke recording and replaying.
User activity history for statistical stuff. Positioning mouse pointer on suggestive choices when more than one available, etc.

Cheers,
   Nik
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
nextBoolean(double p) for Random class 3 40
javap bin 2 34
servlet filter example 37 58
Detect Closed Loops (circles, figure-8s, etc) in PNG Images 6 31
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now