Archive: nsDialogs - set cursor to end of text in text box


nsDialogs - set cursor to end of text in text box
Hi all,

i have an existing textbox that has some text written in it, i use ${NSD_SetFocus} to set the focus to the textbox but the cursor is placed at the beginning, is there a way to place the cursor at the end of the text?

Thanks
x


Hahaa i found out myself :)



${NSD_SetFocus} HWND
${NSD_GetText} HWND $0
StrLen $1 $0
SendMessage HWND ${EM_SETSEL} $1 $1