Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to move mouse pointer programatically ?

 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i make mouse pointer move programatically in java ?
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
naved momin wrote:how can i make mouse pointer move programatically in java ?


java.awt.Robot might be able to do that.
 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeff Verdegan wrote:
naved momin wrote:how can i make mouse pointer move programatically in java ?


java.awt.Robot might be able to do that.
thanks and one more thing jeff do you know how to get mouse input when your application doesn't have focus , i know this cannot be implemented in java , so i m just thinking that it could be done in c or c++ can you point me towards any tutorial or books which shows me how to do this stuff , because i have google but didn't find any thing related?
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I know zero about GUIs, and even less about native GUIs.
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved form Java in General.

naved momin wrote:do you know how to get mouse input when your application doesn't have focus

You can get the location from MouseInfo / PointerInfo
 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Darryl Burke wrote:Moved form Java in General.

naved momin wrote:do you know how to get mouse input when your application doesn't have focus

You can get the location from MouseInfo / PointerInfo

thanks for the help to you and jeff
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic