Skip to content
⌘ NSIS Forum Archive

Get caret position...

3 posts

lushdog#

Get caret position...

Trying:

System::Call user32::SendMessage(i $ActivationCodeControl, i ${EM_GETSEL}, i.r1, i.r2)

$1 and $2 are always 0 no matter what is selected.

Am I missing something here?
lushdog#
System::Call "user32::SendMessage(i, i, *i, *i) (i $ActivationCodeControl, i ${EM_GETSEL}, *i.r1, *i.r2)"

Seems to work.