检测外接显示器
请教一下如何用AUTOIT检测外接显示器的信息。如:CRT,HDMI之类的! #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 不错 学习了
页:
[1]