good, does not look simple, but I'm sure it's easy to keep up with.
I normally want to keep things in the main script if they are directly related to the logon.

this way, I would do something similar to yours but use arrays to achieve the goal.

like, have strings at the beginning of the strings that determine what to use and where and then just split them and use as arrays.

with the readprofilestring, you can also achieve what I want.
include the "ini" section in your script (propably best at the bottom) and then call the script itself.

anyway, I'd call that ini as logon.ini as you might want to add other stuff in it too.
and name the related sections. in this case:
[proxyoverride]
_________________________
!

download KiXnet