锁定三个分辨率的。通过注册表锁定的。
如果不行。请自行搜索更改。
$MonitorClass = 'HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96E-E325-11CE-BFC1-08002BE10318}'
$i = 1
While $i > 0
$Ver = RegEnumKey($MonitorClass, $i)
If @error Then ExitLoop
$MODES = $MonitorClass & '\' & $Ver
$DriverDesc = RegRead ( $MODES, "DriverDesc" )
If $DriverDesc <> '' Then
RegWrite ( $MODES & '\MODES\1024,768' , "Mode1", "REG_SZ", '2.0-254.0,85.0-85.0,+,+' )
RegWrite ( $MODES & '\MODES\640,480' , "Mode1", "REG_SZ", '2.0-254.0,85.0-85.0,+,+' )
RegWrite ( $MODES & '\MODES\800,600' , "Mode1", "REG_SZ", '2.0-254.0,85.0-85.0,+,+' )
$i = $i + 1
Else
RegDelete ( $MODES )
EndIf
WEnd |