nice idea about the .bas.
to have it auto select is pretty simple, just do
if palver = window handle 1 blah blah blah then
send blah blah blah
elseif palver = window handle 2 blah blah blah then
send blah blah blah
elseif palver = window handle 3 blah blah blah then
send blah blah blah
end if
havent looked at your code but you get the idea, just make a palver in .bas file, and make the call to it and it will check to see what pal ver it is and send the appropriate send for it .