举报
#include <APIConstants.au3> #include <WinAPIEx.au3> Local $i = 0, $Data Do $i += 1 $Data = _WinAPI_EnumDisplaySettings('', $i) If Not @error Then MsgBox(0, "", $Data[0] & ' x ' & $Data[1] & ' x ' & $Data[2] & ' bit') EndIf Until Not IsArray($Data)
If @DesktopWidth = 1024 Then;如果是分辨率为:1024X768则运行已下代码。 MsgBox (0,"当前分辨率",@DesktopWidth &" X "&@DesktopHeight) else ;分辨率不是1024X768则运行已下代码 MsgBox (0,"当前分辨率",@DesktopWidth &" X "&@DesktopHeight) endif
查看全部评分
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-3-4 01:47 , Processed in 0.089973 second(s), 24 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.