Hi,
Was just working on something similar using Autoit when I stumbled across your posting. Can I suggest adding in the code below, (incomplete, but you get the idea). That way the complied script can be put in the logon script / Start folder, so that no user interaction is required.
Begin Code ================
$ip = Stringmid(@IPAddress1,1,8)
if $IP = "192.168." Then
MsgBox ( 0, "WSA Location Finder", "You are on the LAN")
call ("SetLanProxy")
Else
MsgBox ( 0, "WSA Location Finder", "You are somewhere else")
call ("SetNoProxy")
EndIf
exit
Func SetLanProxy()
;Check IE is closed
;~ HttpSetProxy ( 2, "192.168.3.4:8080" )
EndFunc
Func SetNoProxy()
;Check IE is closed
;~ HttpSetProxy ( 1, "192.168.3.4:8080" )
EndFunc
END CODE==================
My logic with this code is that our DHCP server hands out 192.168.* addresses, and a home networks tend not to (big assumption I am sure!). So the script runs, see's if it has a DHCP IP, if it does, it must be on the lan so runs the appropriate .reg files.
Anyway hope this is helpful. This is my first ever post in EduGeek forums and hope the posting of code is OK.
Richard.