Well I've figured out the EM_GETSEL message and it's working fine now. I'm onto the string processing part now, and I'm getting this error:
quote:
Error: Object doesn't support this property or method.
Line: 40. Code: -2146827850.
This is the code, the middle line is line 40:
code:
var text = Wnd.GetControlText("NameEdit");
var firstHalf = text.substring(0, Start);
var secondHalf = text.substring(Start, before.length);
I'm assuming it's talking about the substring method, but I don't see why it's saying it's unsupported... any ideas?
Thanks,
David