Sign in to follow this  
Followers 0
voanhkiem6

Function Reg... is not work with win 7 unltimate ???

3 posts in this topic

#1 ·  Posted (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)

EndFunc

Func 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 by voanhkiem6

Share this post


Link to post
Share on other sites



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".


Make yourself sheep and the wolves will eat you - Benjamin Franklin

Share this post


Link to post
Share on other sites

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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0