Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Gui, Add, Button, x46 y20 w100 h30 Gon , Proxy ON
- Gui, Add, Button, x46 y60 w100 h30 Goff , Proxy OFF
- Gui, Add, Button, x46 y100 w100 h30 Ggtfo , Exit
- ; Generated using SmartGUI Creator 4.0
- Gui, Show, x129 y99 h146 w194, Proxy Status
- Return
- on:
- setproxy("ON", "127.0.0.1:1080")
- return
- off:
- setproxy("OFF")
- return
- setproxy(state="", address="")
- {
- if(state = "")
- state = "ON"
- if (state ="ON")
- {
- regwrite,REG_SZ,HKCU,Software\Microsoft\Windows\CurrentVersion\Internet Settings,ProxyServer,%address%
- regwrite,REG_DWORD,HKCU,Software\Microsoft\Windows\CurrentVersion\Internet Settings,Proxyenable,1
- }
- else if (state="OFF")
- regwrite,REG_DWORD,HKCU,Software\Microsoft\Windows\CurrentVersion\Internet Settings,Proxyenable,0
- dllcall("wininet\InternetSetOptionW","int","0","int","39","int","0","int","0")
- dllcall("wininet\InternetSetOptionW","int","0","int","37","int","0","int","0")
- Return
- }
- ;;----------------------------------------------------------
- ;; Function RegRead
- ;;----------------------------------------------------------
- RegRead(RootKey, SubKey, ValueName = "") {
- RegRead, v, %RootKey%, %SubKey%, %ValueName%
- Return, v
- }
- gtfo:
- ExitApp
- GuiClose:
- ExitApp
Add Comment
Please, Sign In to add comment