AU3打开组策略编辑器某项并修改,有什么函数或者注册表吗?写了一个模拟鼠标键盘的,但是有操作过程而且容易失效,看看各位大侠有没有更好的办法???ShellExecute("gpedit.msc", "", "", "open", @SW_MAXIMIZE)
WinWait("本地组策略编辑器")
WinActive("本地组策略编辑器")
ControlTreeView("本地组策略编辑器","","[CLASS:SysTreeView32; INSTANCE:1]","Expand","本地计算机 策略|用户配置|管理模板")
ControlTreeView("本地组策略编辑器","","[CLASS:SysTreeView32; INSTANCE:1]","Expand","本地计算机 策略|用户配置|管理模板|Windows 组件")
ControlTreeView("本地组策略编辑器","","[CLASS:SysTreeView32; INSTANCE:1]","Select","本地计算机 策略|用户配置|管理模板|windows 组件|Internet Explorer")
ControlListView("本地组策略编辑器","","[CLASS:SysListView32; INSTANCE:1]","Select","关闭安全设置检查功能",38)
ControlFocus("本地组策略编辑器","",12786)
Send("{ENTER}")
WinWait("关闭安全设置检查功能")
WinActive("关闭安全设置检查功能")
Send("e")
Sleep(20)
Send("a")
Send("{enter}")
WinClose("本地组策略编辑器")
|