Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Moving the mouse cursor programmatically

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hibernate insert example 13 34
Java: anonymous class 4 29
java imports not found 4 19
Eclipse for Java EE development 2 26
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

792 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