With this function you can get the current height (in pixels) of the game window.
window_get_height();
Real
hh = window_get_height();
The above code will store the current window height in the variable "hh".