Download get-monitors-xfcn-15.hqx (10,387 KB)
From: (Jeffrey D. Iverson) j5rson@prairie.lakes.com
Subject: GetMonitors XFCN 1.5
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!
This external is free for purely personal use. A license fee of $10.00
is required if you use this external in any in-house corporate,
shareware or freeware products. The license fee for unlimited commercial
use in a SINGLE for sale product is $25.00. The license fee for
unlimited commercial use with MULTIPLE products is $100.00.
Permission is hereby granted to all groups who distribute demo software,
either for profit (such as EduCorp) or not for profit (such as a
Macintosh Users Group), to include this file in their collection. My
goal is to get as much exposure for my products as possible, and I
believe that these groups offer an invaluable service to shareware
publishers like myself.
If you have questions or comments we can be reached through the
following:
Iverson Software Co. 507.625.7355
522 Record St. j5rson@prairie.lakes.com
Mankato MN 56001-2546 http://prairie.lakes.com/~j5rson/