本帖最后由 gapkiller 于 2022-7-15 11:26 编辑
Local $binEdid = RegRead("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\LEN40A9\4&c0b3f9&0&UID8388688\Device Parameters", "EDID")
$iSizeH = Gb(66) + BitAND(BitShift(Gb(68),4),0xF)*0x100
$iSizeV = Gb(67) + BitAND(BitShift(Gb(68),0),0xF)*0x100
$iPixelX = Gb(56) + BitAND(BitShift(Gb(58),4),0xF)*0x100
$iPixelY = Gb(59) + BitAND(BitShift(Gb(61),4),0xF)*0x100
$sType = BinaryToString(BinaryMid($binEdid,114,15))
MsgBox(64,'Monitor', 'Size: ' & $iSizeH & ' x ' & $iSizeV & ' (mm)' & @LF & _
'Pixel: ' & $iPixelX & ' x ' & $iPixelY & @LF & _
'Type: ' & $sType)
Func Gb($i)
Return BitAND(BinaryMid($binEdid,$i+1,1),0xFF)
EndFunc
下图是我自己电脑上读出来的.
4&c0b3f9&0&UID8388688这个不是每一个电脑上都一样
|