Skip to content

Can't send some type of Scintilla message with macro #5463

@crash5

Description

@crash5

Description of the Issue

I try to add a macro to set the "virtual space" options in Scintilla, but it looks like the message not sent or something is went wrong. (Another Scintilla message like "move cursor left" works.)

The same message works with the NppExec plugin script: SCI_SENDMSG 2596 3 0 (source)

Steps to Reproduce the Issue

Edit shortcuts.xml add this code snippet inside the <Macros>...</Macros> tag:

<Macro name="Enable virtual space" Ctrl="no" Alt="no" Shift="no" Key="0">
    <Action type="0" message="2596" wParam="3" lParam="0" sParam="" />
</Macro>
<Macro name="Move cursor left" Ctrl="no" Alt="no" Shift="no" Key="0">
    <Action type="0" message="2308" wParam="0" lParam="0" sParam="" />
</Macro>

Expected Behavior

After run the "Enable virtual space" macro I can put the caret beyond line end with mouse.

Actual Behavior

Nothing.

Debug Information

Notepad++ v7.6.4   (32-bit)
Build time : Mar  6 2019 - 02:52:22
Path : D:\npp\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS : Windows 10 (64-bit)
Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions