Need to know some basic knowledge on internet options.

How does automatic detect settings work, if we unchecked the automatic detect settings and check the use proxy server for your LAN
internet still works. My question is how these 2 settings are linked and also how use automatic configuration script works..?