To get the coordinate in window pixels or screen pixels, use:
Code:
# Get mouse position in pixel coordinates
x,y = viz.mouse.getPosition(viz.WINDOW_PIXELS)
# Get mouse position in screen coordinates
x,y = viz.mouse.getPosition(viz.SCREEN_PIXELS)
More info:
http://docs.worldviz.com/vizard/Mouse.htm.