GetMouse ( ByRef x, ByRef y, ByRef mb1, ByRef mb2, ByRef mb3 )

Gets the position of the mouse in the window and whether or not the mouse buttons are pressed.
Note: For the absolute mouse position on the display look at GetGlobalMouse


Example:

   my_window_mode = WindowMode(1,0,1,0,0)
   WindowOpen ( 0, "My App", WINDOWPOS_CENTERED, WINDOWPOS_CENTERED, 640, 480, my_window_mode, 1 )
   Dim x, y, mb1, mb2, mb3
   While WindowExists( 0 )
   GetMouse ( x, y, mb1, mb2, mb3 )
   Print "Mouse position is "; x; ","; y
   Update()
   Wend

This will open a 640 x 480 window and continue printing the mouse position to the console until closed.