Page 1 of 1

Monitors Class

PostPosted: Fri Aug 10, 2018 2:36 am
by django
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

Re: Monitors Class

PostPosted: Fri Aug 10, 2018 12:10 pm
by malcolm
Monitors is the type, monitors is the variable name you want to use. So you use

Code: Select all
monitors.primary.refreshRate

Re: Monitors Class

PostPosted: Fri Aug 10, 2018 12:13 pm
by django
Perfect, thanks malcolm!