Screen(‘WindowScreenNumber’)

Psychtoolbox>Screen.{mex*} subfunction

screenNumber=Screen(‘WindowScreenNumber’, windowPtr);

Get screenNumber, the number of the screen on which the window appears. If the
window is an offscreen window then this value is -1.

###See also: