nppexec icon indicating copy to clipboard operation
nppexec copied to clipboard

Does sci_sendmsg accept sParam?

Open mercurial-moon opened this issue 5 months ago • 3 comments

I recorded a macro in NPP for find and replace NBSP character the following is the XML

        <Macro name="Find and Replace NBSP" Ctrl="yes" Alt="no" Shift="yes" Key="112">
            <Action type="3" message="1700" wParam="0" lParam="0" sParam="" />
            <Action type="3" message="1601" wParam="0" lParam="0" sParam="\xa0" />
            <Action type="3" message="1625" wParam="0" lParam="1" sParam="" />
            <Action type="3" message="1602" wParam="0" lParam="0" sParam=" " />
            <Action type="3" message="1702" wParam="0" lParam="768" sParam="" />
            <Action type="3" message="1701" wParam="0" lParam="1609" sParam="" />
        </Macro>

when I try to do the same with nppexec it doesn't work

sci_sendmsg 1700 0 0 ""
sci_sendmsg 1601 0 0 "\xa0"
sci_sendmsg 1625 0 1 ""
sci_sendmsg 1602 0 0 " " 
sci_sendmsg 1702 0 768 ""
sci_sendmsg 1701 0 1609 ""

also the doc for sci_sendmsg doesn't say anything about sparam it says

sci_sendmsg <msg> <wparam> <lparam>  -  msg to Scintilla

Is sparam supported for sci_sendmsg or is there something wrong that I have done in the nppexec script?

mercurial-moon avatar Sep 09 '24 03:09 mercurial-moon