OrionCookies
Programmer
I like to set refresh rate. I get settings but unable to set it...need little help. here is my so far code.
'_______________________________
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery _
("Select * from Win32_DisplayControllerConfiguration")
For Each objItem in colItems
Dim refreshm, refresht
refresht = 60
refreshm = objItem.RefreshRate
Wscript.Echo "Refresh Rate: " & refreshm
if refreshm < 60 then
Wscript.Echo "Refresh Rate: " & refreshm
'like to set refresh rate here....if less than 60
end if
Next
'_____________________________________________
'_______________________________
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery _
("Select * from Win32_DisplayControllerConfiguration")
For Each objItem in colItems
Dim refreshm, refresht
refresht = 60
refreshm = objItem.RefreshRate
Wscript.Echo "Refresh Rate: " & refreshm
if refreshm < 60 then
Wscript.Echo "Refresh Rate: " & refreshm
'like to set refresh rate here....if less than 60
end if
Next
'_____________________________________________