yangysky 发表于 2011-2-22 15:54:36

检测外接显示器

请教一下如何用AUTOIT检测外接显示器的信息。如:CRT,HDMI之类的!

smartzbs 发表于 2011-2-25 09:30:33

#include <WinAPI.au3>
$aDevice = _WinAPI_EnumDisplayDevices("", 1)
If StringRight($aDevice,1)="1" Then;显卡支持VGA和HDMI
        $aDevice = _WinAPI_EnumDisplayDevices("", 0)
        If BitAND($aDevice, 32) = 32 Then
                MsgBox(4096,"提示", "当前显卡用VGA线连接")
        Else
                MsgBox(4096,"提示", "当前显卡用HDMI线连接")
        EndIf
EndIf

5i5wei 发表于 2011-2-25 09:34:08

不错 学习了
页: [1]
查看完整版本: 检测外接显示器