From what I remember, to get display info about second screen, the only way is to:
- use
window_get_visible_rects()
as
@chamaeleon says, used together with args:
window_get_x(), window_get_y(), window_get_width(),window_get_height()
- to detect on which window you are now, every monitor have group of 8 indexes in array (so two monitors = 16 keys in array) - monitor on which game is will have sum of first 4 arguments in group > 0 (be aware that game can be on two monitors at once, and they can have different resolutions!)
- display width of n-th monitor is:
data[4*n+5] - data[4*n+4]
- display heightof n-th monitor is:
data[4*n+7] - data[4*n+6]
For example, number of displays can be get by writing:
GML:
return array_length(window_get_visible_rects(0,0,1,1))/8;