Hi men,
I need your help for my new script.
I don't know how i can get position end of Selected text in EditControl.
This is the code for get position start (Start.ReadDWORD(0)):
code:
// Two Win32 Messages that we will need to send later
var EM_GETSEL = 0xB0;
var EM_SETSEL = 0xB1;
// Allocate some memory for the cursor index
var Start = Interop.Allocate(4);
// Get where the cursor is in the input box
Interop.Call("user32", "SendMessageW", PanelPseudo.GetControlHandle("pseudo"), EM_GETSEL, Start, 0);
var text = PanelPseudo.GetControlText("pseudo");
var firstHalf = text.substring(0, Start.ReadDWORD(0));
var secondHalf = text.substring(Start.ReadDWORD(0), text.length);
But How can i get End selection??
You can find my script in attachment and 2 pictures of Pseudo Etape.
For info, when this script is running, it change your nick by a nick step, understand?
Thanks for your Answer and sorry for my english..