Detecting the active monitor under Mavericks and Yosemite...
Paul Dupuis
paul at researchware.com
Tue Nov 25 16:35:12 EST 2014
On 11/25/2014 4:07 PM, Scott Rossi wrote:
> The theory is:
>
> "In its plural form (screenRects) this function returns a list containing the virtual co-ordinates of all the screens currently attached to the system. The first line is always that of the primary display, and the order of the rest are in an OS-specific order.”
>
I was aware of how screenrects returns the rects for multiple monitors.
I imagined that the desktopChanged message *might* even be sent under
Mavericks and Yosemite when the menubar switched monitors and then I
could fetch the screenRects in a handler for that message as a check vs
having to poll the screenRects every x interval of time, but before
investing the time to construct test stacks and change startup disks and
so on and so on, I was hoping someone on the list had already done this
and definitively knew the answer :-)
Thanks for taking the time to reply though.
More information about the use-livecode
mailing list