麻烦懂win32 api的进
在ie7,8,9浏览器的开发人员调试工具中,有一项禁用功能,可以控制浏览器对javascript,弹窗,以及css的使用功能
我想在一个外部程序中,控制图片中 画红线部分的开启与关闭功能,请问使用win32 api中如何实现?
------解决方案--------------------应该可以通过修改注册表达到效果。。。使用Regon来看你手动开启或者关闭的话,注册表发生什么变化
------解决方案--------------------这里有个很全的文档,关于注册表的,楼主可以看下
IE浏览器安全选项的注册表键值,修改注册表启用Activex控件的脚本
------解决方案--------------------Operation Path Detail
RegCreateKey HKCU\Software\Microsoft\Internet Explorer\IEDevTools\Options\DisableScript\1 Desired Access: Write
RegCloseKey HKCU\Software\Microsoft\Internet Explorer\PhishingFilter
RegQueryKeySecurity HKCU\Software\Microsoft\Internet Explorer\IEDevTools\Options\DisableScript\1
RegSetValue HKCU\Software\Microsoft\Internet Explorer\IEDevTools\Options\DisableScript\1\(Default) Type: REG_DWORD, Length: 4, Data: 0
RegQueryKey HKCU Query: HandleTags, HandleTags: 0x0
RegOpenKey HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1 Desired Access: Write
RegQueryKeySecurity HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1
RegSetValue HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1\1400 Type: REG_DWORD, Length: 4, Data: 3
RegQueryKey HKLM Query: HandleTags, HandleTags: 0x0
RegOpenKey HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1 Desired Access: Write
RegCloseKey HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1
RegCloseKey HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1
RegQueryKey HKCU Query: HandleTags, HandleTags: 0x0
RegCreateKey HKCU\Software\Microsoft\Internet Explorer\IEDevTools\Options\DisableScript\2 Desired Access: Write
RegCloseKey HKCU\Software\Microsoft\FTP
RegQueryKeySecurity HKCU\Software\Microsoft\Internet Explorer\IEDevTools\Options\DisableScript\2
RegSetValue HKCU\Software\Microsoft\Internet Explorer\IEDevTools\Options\DisableScript\2\(Default) Type: REG_DWORD, Length: 4, Data: 0
RegQueryKey HKCU Query: HandleTags, HandleTags: 0x0
RegOpenKey HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2 Desired Access: Write
RegQueryKeySecurity HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2
RegSetValue HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2\1400 Type: REG_DWORD, Length: 4, Data: 3
RegQueryKey HKLM Query: HandleTags, HandleTags: 0x0
RegOpenKey HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2 Desired Access: Write
RegCloseKey HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2
RegCloseKey HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2
RegQueryKey HKCU Query: HandleTags, HandleTags: 0x0
RegCreateKey HKCU\Software\Microsoft\Internet Explorer\IEDevTools\Options\DisableScript\3 Desired Access: Write
RegCloseKey HKCU\Software\Microsoft\Internet Explorer\Suggested Sites
RegQueryKeySecurity HKCU\Software\Microsoft\Internet Explorer\IEDevTools\Options\DisableScript\3
RegSetValue HKCU\Software\Microsoft\Internet Explorer\IEDevTools\Options\DisableScript\3\(Default) Type: REG_DWORD, Length: 4, Data: 0
原来是在IEDevTools里面设置的,用了注册表监视器终于解决这个问题了
------解决方案--------------------或者用IE的com应该也可以