Solved

Moving the mouse cursor programmatically

Posted on 2001-07-27
1
1,067 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
bunnyEars2 challenge 6 68
word0 challenge 3 58
JDeveloper 12c for 32 bit 4 35
Java Loop 4 14
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…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

758 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

14 Experts available now in Live!

Get 1:1 Help Now