>>I wonder if there is a way to enumerate the available monitors? I tried EnumDisplayDevices but FoxPro crashes on execution. So far I only get the monitor count.
>
>See if
http://doughennig.blogspot.com/2010/02/multiple-monitor-class.html is still there. I got good results with it.
>
>There 's something extremely stupid in Windowses about finding the second monitor. At the time I was doing my screen savior (I think it's in downloads here, check under my name) I couldn't find any API that would return an array of monitors. The only thing I found was the function to return a monitor at given position (just pass a pair of coordinates) if it's there. So I had to poke around.
https://github.com/VFPX/Win32API/blob/master/samples/sample_542.md>Then found that in Python it's a simple call to one of ready objects, and you get an array of objects, one per monitor, and everything's there. Why is it so complicated under windowses is beyond me. If you find something simpler, let me know.