Monitors Class

Hi there,

I am trying to use the Monitors Class to get the refreshRate of the primary display.

I tried: Monitors.primary.refreshRate
and: monitors[Monitors.primary].refreshRate

But I am out of luck.

Does anyone know how to do this?

Cheers, David

Monitors is the type, monitors is the variable name you want to use. So you use

monitors.primary.refreshRate

Perfect, thanks malcolm!