Jump to content

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


Recommended Posts

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
Link to comment
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".

"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...