Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mouse cursor changes  RSS feed

 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, is there anyway to tell whether or not a mouse cursor changes or not?

for example:

say the original cursor is a little STRAIGHT sword, and then when over
a certain 'thing' the cursor changes to a little CURVED sword.

is there a way to store the original cursor, and then be able to write an application that can notice when the straight sword turns into a curved one.

p.s

im using the robot class to 'emulate' game play in a mmorpg client.


Justin Fox
 
Eoin Mac Aoidh
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Justin,

If you know the structure of the document, or screen layout - ie where the 'things' are then you could just use a mouseMotionListener, and 'listen' for when the mouse moves over the 'things'. I suspect you are after a better solution than that though.... just a thought.

E
 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, so would you happen to know off hand the different classes of
mouseMotionListener?

like: mouseMoved,mouseChanged or whatever they might be.

thank you for your advice.

Justin Fox
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!