回复 3# kn007 [/code]
api 搞定了吗?
我这里建议 模拟的方法
这个是我今天去调试双屏 设置主显切换的,是延伸的两个显示器 进行主屏切换
这个 跟你帖子的主题不是很贴切
你是要切换 复制和延伸的方法
暂把代码放在你这里吧
以后搜索方便 呵呵
[code]
Run("rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,3","",@SW_HIDE)
Sleep(800)
WinActivate("显示 属性","设置")
$MonitorNum=ControlGetText("显示 属性","设置", "[CLASS:ComboBox; INSTANCE:1]")
If StringLeft($MonitorNum,1) = "1" Then
$MonitorNum = ControlSend ("显示 属性","设置", "[CLASS:ComboBox; INSTANCE:1]", "2")
Else
$MonitorNum = ControlSend ("显示 属性","设置", "[CLASS:ComboBox; INSTANCE:1]", "1")
EndIf
ControlClick("显示 属性","设置","[CLASS:Button; INSTANCE:5]")
ControlClick("显示 属性","设置","[CLASS:Button; INSTANCE:3]")
ControlClick("显示 属性","设置","[CLASS:Button; INSTANCE:8]")
Exit
|