Count attached screens

Hi,

I'd like to make an If Then where I calculate the amount of attached screens and act accordingly. Is there a way to find how many displays are connected to the computer?

See here:

As macro:


Number of connected displays as condition <8F9C 200310T183037>.kmmacros (2.9 KB)

Thanks!!!

Yep, and you don't need a shell script.
See SCREENCOUNT function.

2 Likes

Great idea :smile:

Thanks, completely overlooked that.

1 Like

Sorry that I posted an unnecessarily complicated solution. Note to myself: Always check the pretty darn good KM Wiki before replying.

But, at least you (and me too) have learned a nice way to get the display count via shell :wink:

(If you hadn't asked, I never would have looked it up.)

1 Like

Thanks here too.