Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Moving the mouse cursor programmatically

Posted on 2001-07-27
1
Medium Priority
?
1,077 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
[X]
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
1 Comment
 
LVL 8

Accepted Solution

by:
diakov earned 400 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

618 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