Ok I dont want to use wpad i want to certain users on certain domain to use 1 of 6 or more proxy servers this is what I had before



: proxy_settings
;
$nul=WriteValue($HKCUSMWCVIS,"ProxyOverride","home.*;10.*etc etc.*;<local>","REG_SZ")
$nul=AddKey($HKCUSMWCVISPS)
$nul=WriteValue($HKCUSMWCVIS,"ProxyEnable","0","REG_DWORD")

If Val (ReadProfileString(C: +'\Kix\include.ini','Include',@WKSTA)) = 1
$nul=WriteValue($HKCUSMWCVIS,"ProxyEnable","1","REG_DWORD")
EndIf
;
If Val (ReadProfileString(C: +'\Kix\include.ini','Proxy',Proxy1) = 1
$nul=WriteValue($HKCUSMWCVIS,"ProxyServer","Proxy1:80","REG_SZ")
;
Else
$nul=WriteValue($HKCUSMWCVIS,"ProxyServer","Proxy2:80","REG_SZ")
;
EndIf


As you can see this is hardcoded to the script although you could mess around with cnames you are still limited to 2 All I want to do is manually read a value as a variable? as described before and enter it into the registry surley it cant be that difficult??