¼ÐÃD:
[µo°Ý]
½Ð±Ð¦p¦ó¨Ï¥ÎVBAקïIE ªºPROXYªº³]©w¡H¡H¡H
[¥´¦L¥»¶]
§@ªÌ:
vesperlee
®É¶¡:
2013-2-28 17:19
¼ÐÃD:
½Ð±Ð¦p¦ó¨Ï¥ÎVBAקïIE ªºPROXYªº³]©w¡H¡H¡H
[attach]14272[/attach]
°õ¦æ proxyÃö³¬ µ{§Ç¡A¦A°õ¦æproxy¥´¶} µ{§Ç¡A«¶}IE«á¡A
(1)½Ð±Ð¦p¦ó¤£Åý 4. ªº¦ì¸m {ªñºÝºô§}¤£¨Ï¥ÎProxy(B)} ªº¤Ä¿ï¤£n¤£¨£¡H
(2)½Ð±Ð¦p¦ó¦bµ{¦¡ùس]©w {ªñºÝºô§}¤£¨Ï¥ÎProxy(B)}ªº¤Ä¿ï¿ï¶µ ¬°¥´¤Ä©Î¤£¥´¤Ä¡H
5.ªº¤º®e {§t¦³¤U¦C°_©l¤å¦rªº¦ì§}¤£¨Ï¥ÎProxy} ¤]·|¤£¨£
(3)½Ð°Ý ¦p¦ó³]©w 5.ªº¤º®e ¤£n¤£¨£¡H
(4)©Î¦p¦ó¦bµ{¦¡ùس]©w {§t¦³¤U¦C°_©l¤å¦rªº¦ì§}¤£¨Ï¥ÎProxy} ªº¤º®e¡H
¬ÛÃöµ{§Ç½X¦p¤U¡G
[attach]14273[/attach]
¸U¤À·PÁÂ~~¡I
§@ªÌ:
vesperlee
®É¶¡:
2013-2-28 23:55
ª¦¤å¤F¦n¤[~_~ ¨ÌµM§x´b´£¨Ñ¤U¦C§Þ³N¤å¥ó¡C
³Â·Ð¦U¦ì¥ý¶i«üÂI°g¬z
http://technet.microsoft.com/zh-tw/library/ff699052.aspx
§@ªÌ:
GBKEE
®É¶¡:
2013-3-1 14:56
¦^´_
2#
vesperlee
À°§Aª¦¤å¤F
->§Þ³N¤å¥ó¡C
http://technet.microsoft.com/zh-tw/library/ff699052.aspx
°õ¦æVBA ªºµ{§Ç«á,¦pn¨ì IE¬d¬Ý[³s½u]³]©wªº§ïÅܮɳ£¶·«ö¤U¨C¤@¤lµøµ¡ªº[½T©w]Áä , ·í¦A¦¸ªº°õ¦æ VBA ªºµ{§Ç§@§ïÅܤ~·|¦³§@¥Îªº
Option Explicit
Const HKEY_CURRENT_USER = &H80000001
Sub proxyÃö³¬()
'»Ýק諸³¡¥÷ proxy.hinet.net:80 (¥]§tPort)' ,1¬°P¯à¡A0¬°°£¯à
ProxySettings "proxy-n1.google.com.tw:3125", 0
End Sub
Sub proxy¥´¶}()
'»Ýק諸³¡¥÷ proxy.hinet.net:80 (¥]§tPort)' ,1¬°P¯à¡A0¬°°£¯à
ProxySettings "proxy-n1.google.com.tw:3125", 1
End Sub
Public Sub ProxySettings(ByRef strAddress As String, ByRef intSwitch As Integer)
Dim strComputer As String, objRegistry As Object, strKeyPath As String, strValueName As String, dwValue As Integer, strValue As String
strComputer = "."
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings"
strValueName = "ProxyEnable"
dwValue = intSwitch
objRegistry.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, dwValue
strValueName = "ProxyServer"
strValue = strAddress
objRegistry.SetStringValue HKEY_CURRENT_USER, strKeyPath, strValueName, strValue
strValueName = "ProxyOverride"
'5.ªº¤º®e {§t¦³¤U¦C°_©l¤å¦rªº¦ì§}¤£¨Ï¥ÎProxy}
strValue = "MyTest...." '¼g¤J¦ì§}
'strValue = "<local>" '²M°£¦ì§}
objRegistry.SetStringValue HKEY_CURRENT_USER, strKeyPath, strValueName, strValue
End Sub
½Æ»s¥N½X
Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)