get vector (x,y,z)

Hi partners.
I need to get a vector (x, y, z) with the coordinates of the mouse pointer.
Coordinates of 3D cursor does not serve me for what I want to do.
Thanks.

Look at this example http://wiki.blender.org/index.php/Dev:2.5/Py/Scripts/Cookbook/Code_snippets/Interface#Invoke_versus_execute

but this won’t give you the Z coordinates only X and Y for the mouse

so how can you relate this to a location in blender world ?

happy 2.5