Mouse Sensor

Hi, I am having a bit of a problem to figure out how to get the object’s name and position when I put my mouse over it.

I only want to add one mouse sensor that will pick up hit objects that my mouse goes over. I am pretty sure I can use “Mouse Over Any” to pick up if my mouse goes over any object, but what code do I use to retrieve the data?

I am trying to avoid at having a “Mouse Over” sensor on every single object… Thanks

Use sensor.getHitObject() to return the object the cursor is over (if the cursor is over an object)

Hi, I have made a quick example of python trying to use the mouse sensor, could someone have a quick look to see any problems? I have made the .blend very easy to follow.

http://www.box.net/shared/adg17r69v3

Thanks