Gotta get some reading lessons
Anyways, I started at the MSDN article. I guess I'd post some code?
JScript code:
// Example
var Text = "Hello world!";
var pText = "Hello world";
var SetSel = function(Start,End) {
Interop.Call("User32.dll","SendMessageW",hWnd,EM_SETSEL,Start,End);
}
(...)
SetSel(Text.length,pText.length);
NB: the hWnd parameter is known.