That is just example code, you will have to figure out
how to use it in your user case. Study how that script
is written and apply that to your own code.
Yes, code still works flawlessly.
When opening it in BAS make sure to validate it for current
version. That option will be offered when you firstly open that
code in BAS. If you missed it you can update it from the
"Script editor" menu - last option is > "Update project actions"
Furthermore, for script to work you need to add proxies and
select correct proxies type. But in order to just run script for
testing purposes you can run it without any proxy - make sure
to change resource option for proxy to "FixedString" and leave
proxy field empty. By default it is set to "LinesFromFile" so that
might be the problem to run script successfully - it expects that
you link your TXT file with list of proxies. Make sure to enter some
target web page/address as well, so the script will work.
In example code radio buttons are used to choose http or socks
proxy. And that code you are trying to use does not use radio button.
It simply uses proxy from TXT list or single value, and if you leave it
blank it will not use proxy at all. So in your case you might not need
radio buttons to tell script to work with or without proxy, just leave
empty value field in order not to use proxy or populate it to use proxy.