• Post Reply Bookmark Topic Watch Topic
  • New Topic

Moving a mouse cursor  RSS feed

 
Andy Nimmo
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've developed a small app which handles the execution of a number of external applications and holds them in threads to which it sends heartbeats to ensure that their runtimes do not idle.
What I need to implement now though is to move the mouse cursor to generate screen update events as if a user was sat at the PC moving the mouse.
Is this possible and how would I go about doing it?
Cheers,
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a 'Robot' class which might help.
Package 'java.awt.Robot'.
 
Andy Nimmo
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's spot on!
Thank you very much, got all sorts of wonderful things happening now!
Cheers,
Andy.
"To Err is human but to really foul up requires a computer"
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!