Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Monitors Class

Still a little green? Ask your beginner's questions here

Monitors Class

Postby django » Fri Aug 10, 2018 2:36 am

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
django
 
Posts: 105
Joined: Fri Aug 30, 2013 3:26 am

Re: Monitors Class

Postby malcolm » Fri Aug 10, 2018 12:10 pm

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

Code: Select all
monitors.primary.refreshRate
User avatar
malcolm
Staff
 
Posts: 4084
Joined: Tue Nov 13, 2007 1:11 am

Re: Monitors Class

Postby django » Fri Aug 10, 2018 12:13 pm

Perfect, thanks malcolm!
django
 
Posts: 105
Joined: Fri Aug 30, 2013 3:26 am


Return to Beginners

Who is online

Users browsing this forum: No registered users and 15 guests