Screen(‘Windows’)

Psychtoolbox>Screen.{mex*} subfunction

windowPtrs=Screen(‘Windows’);

Return a vector of windowPtrs, including on- and off-screen windows.
n=length(Screen(‘Windows’)) is a handy way to count them.

###See also: