Skip to main content
Home Browse Development Get Monitors Xfcn
Get Monitors Xfcn 1.5
Get Monitors Xfcn icon

Get Monitors Xfcn

Development · v1.5
Filenameget-monitors-xfcn-15.hqx
Size10.1 KB (10387 bytes)
Downloads8
Enjoying MacTrove? Anonymous downloads are free and unlimited. Create a free account to track favorites, contribute metadata corrections, and join the community chat.
About
GetMonitors takes no parameters. It returns the following info: MonitorNumber, IsMainScreen, HasColor, BitDepth, BottomCoordinate, RightCoordinate MonitorNumber tells the order that the monitor's card was encountered, IsMainScreen is true if the screen has the menubar, HasColor is true if the monitor is set to a color mode (not grays or Black & White), BitDepth is the current setting for that monitor, BottomCoordinate is the bottom pixel on that screen, RightCoordinate is the rightmost pixel on that screen. Here's what I had when I wrote it: 1,false,false,4,480,1280 2,true,true,8,480,640 Since the monitors sit next to each other, and the one on the right has the menubar it is considered the main screen, so it's topleft is considered the Origin, or 0,0 so it's RightCoordinate is 640, and it's BottomCoordinate is 480. The monitor next to it runs off of the built in video card, so it loads first, but it's RightCoordinate is 1280, which is 640 from the first monitor, plus 640 which is its width, and it's BottomCoordinate is 480, the same as the main screen. This is controlled by how you move the screens around in the Monitors control panel. Click on and/or examine the script of the button above to see how it works!
File Info

This file is part of the MacTrove archive. See the Thank You page for the upstream mirrors we rely on. It is BinHex encoded — use The Unarchiver to decode it.

mp.ls