With this function you can get the x position of the mouse cursor (in pixels) within the browser if it is an HTML5 game or within the display if it is a Windows, Ubuntu (Linux) or MacOS game.
NOTE: For regular mouse functions see the section on Mouse_Input
window_mouse_get_x();
Real
wx = window_mouse_get_x();
The above code stores the current x axis window position of the mouse in the variable "wx".