|
|
|
| 30 May 2003 | GetIEAutoDetect() |
| Author | Bill Stewart (Albuquerque, NM) |
| Action | Returns the "Automatically detect settings" check box in IE. |
| Syntax | GetIEAutoDetect () |
| Parameters | |
| Remarks | Returns the setting based on the appropriate bit in the registry setting HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\DefaultConnectionSettings (REG_BINARY). |
| Returns | 1 if auto detect is enabled; 0 if it is disabled; -1 on error |
| Dependencies | None. |
| Examples | $rc = GetIEAutoDetect() |
| Source |
FUNCTION GetIEAutoDetect ()
DIM $value, $rc
$value = ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections", "DefaultConnectionSettings")
$rc = IIF(@error = 0, (Val(Substr($value, 18, 1)) & 8) <> 0, -1)
$getieautodetect = $rc
ENDFUNCTION ; - GetIEAutoDetect -
|
|
|
|