voanhkiem6 Posted June 23, 2012 Posted June 23, 2012 (edited) Func enable($proxy)$a=RegWrite("HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings","ProxyEnable","REG_DWORD",1)$b=RegWrite("HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings","ProxyServer","REG_SZ",$proxy)DllCall('wininet.dll', 'long', 'InternetSetOption', 'int', 0, 'long', 39, 'str', 0, 'long', 0)Sleep(3000)EndFuncFunc disable()RegWrite("HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings","ProxyServer","REG_SZ","")RegWrite("HKCUSoftwareMicrosoftWindowsCurrentVersionInternet Settings","ProxyEnable","REG_DWORD",0)DllCall('wininet.dll', 'long', 'InternetSetOption', 'int', 0, 'long', 39, 'str', 0, 'long', 0)Sleep(3000)EndFunc================================= Question ==============================Everyone help me by testing above code in win 7 ultimate.I tested and see it' not effect in win 7, but win xp is good work.This is my full code, everyone see and debug error for me! Thanks u so much !test.au3 Edited June 23, 2012 by voanhkiem6
ripdad Posted June 23, 2012 Posted June 23, 2012 Quote: "I tested and see it' not effect in win 7, but win xp is good work." Thats your clue - now follow up with... Read the Helpfile for RegWrite under "Remarks". "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward
UEZ Posted June 23, 2012 Posted June 23, 2012 Try #RequireAdmin.Probably UAC is enabled.Br,UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
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