|
本帖最后由 pingfan5888 于 2011-12-14 15:49 编辑
RegWrite('HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings', 'EnableAutoProxyResultCache', 'REG_DWORD', '0x00000000')
RegWrite('HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings', 'AutoConfigURL', 'REG_SZ', 'file://' & @ScriptDir &'\proxy.pac')
;下面四条都不起作用。要自己手动选择IE选项确定后才会生效。请教各位。谢谢。
DllCall("user32.dll","int","SendMessageTimeout","hwnd",65535,"int",26,"int",0,"int",0,"int",0,"int",1000,"str","dwResult")
DllCall("shell32.dll","none","SHChangeNotify","long",0x8000000,"int",0,"ptr",0,"ptr", 0)
DllCAll("Userenv.dll","int","RefreshPolicyEx","int",1,"int",1)
EnvUpdate() |
|