Hello again, ok I have solved this (eventually

). It seems that the settings xmltvgui.ini file in the settings directory does not get populated with the settings chosen in the .exe. So when it is run by the scheduler it looks at the .ini and uses those variables. So I went and set all the info in the .ini and ran from scheduler again and it correctly ran the ALT_CHNAMES_Text script, but with much less channels.
On further investigation it seems that running from scheduler also makes the .exe look at the userchannels.txt file located within settings/UK_RT/ directory, for some reason the channels selected in the GUI were not stoed here either. So I had to manually type them in. Now that this is done it works as normal. So my question is why is the GUI not writing the settings correctly to the .ini file?
Also why does the GUI "remember" the settings if they are not in the .ini, but the GUI when run from windows scheduler needs the .ini? Is this to do with permissions to write to the .ini? Seems odd that the settings are not stored but yet remembered ...
Any comments welcome.