以下方法可以用来在程序中修改用户的IE浏览器“工具-->Internet选项-->高级-->禁用脚本调试”勾上。
public class Test{
public static void main(String[] args) throws Exception{
String cmd = "reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\Main\" /v \"Disable Script Debugger\" /d yes /t REG_SZ /f";
Runtime rt = Runtime.getRuntime();
Process p = rt.exec(cmd);
}
}