I don't understand your point.. what he suggests seems "clean" enough to me.

Plus - correct me if I'm wrong - a script can't select text from the editbox control of a combo. "/did -c <dlg> <id> N <range>", if N is 0, unchecks any selected line (rather than selecting <range> characters from the editable text). If N isn't 0, it only selects Nth line. Using it along with the -k parameter does nothing.