If we give you the code how will you learn... atleast attempt to do it.
You barely attempt anything and just ask for it. How about you you try and post what you try and we will correct it.
I will get you started
Wrong Function.
code:
var EM_POSFROMCHAR = 0xF0D6;
var POINTL = Interop.Allocate(8);
Interop.Call('user32',
'SendMessageW',
pPlusWnd.GetControlHandle('txtMyEditControl'),
EM_POSFROMCHAR,
POINTL.DataPtr,
0);
// Specifies the horizontal (x) coordinate of the point.
Debug.Trace('POINTL.ReadDWORD(0) : '+POINTL.ReadDWORD(0));
//Specifies the vertical (y) coordinate of the point.
Debug.Trace('POINTL.ReadDWORD(4) : '+POINTL.ReadDWORD(4));
You can use String('Hello').indexOf('l');