autoitxp Posted April 17, 2008 Share Posted April 17, 2008 (edited) Hi Sorry for Poor English my proxy browser have problem i want someone to fix this browser is unable to update proxy setting GUICtrlCreateObj it show only first working proxy in browser and loop up so anyone tell me wat is soultion to update proxy settings and update page with new proxy Here is my full code : expandcollapse popup#include<file.au3> #include <IE.au3> #include <GUIConstants.au3> _IELoadWaitTimeout(30000) GUICreate("Web Proxy Browser" , 800 , 600) Dim $array local $var_1 = _IECreateEmbedded() local $var_2 = GUICtrlCreateObj($var_1, 30, 50, 700, 400) $btn_1 = GUICtrlCreateButton("Go", 670, 480, 60, 40) $var_3 = GUICtrlCreateEdit ("", 30,470,400,100) $var_4 = GUICtrlCreateLabel("Address:", 30,13,70) $var_5 = GUICtrlCreateCombo( "about:blank", 100, 10, 630, 20) GUICtrlSetData(-1,"http://google.com|http://www.ip-adress.com" , "http://www.ip-adress.com") _FileReadToArray("Proxy.txt", $array) GUISetState () While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $btn_1 For $i = 1 To $array[0] $var_6 = RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyServer", "REG_SZ", $array[$i]) if $var_6 = 1 Then $var_7 = RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyEnable", "REG_DWORD", "1") if $var_7 = 1 Then $var_8 = _IENavigate($var_1, GUICtrlRead($var_5), 1) if $var_8 = -1 Then GUICtrlSetData($var_3, $array[$i] &@CRLF,0 ) sleep(5000) Else GUICtrlSetData($var_3, $array[$i] & " Dead" & @CRLF,0 ) EndIf Else MsgBox(64, "Error Registry !", "Error Writing Registry 0x2") EndIf Else MsgBox(64, "Error Registry !", "Error Writing Registry 0x1") EndIf Next EndSelect WEnd Edited April 17, 2008 by autoitxp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now