Skip to content

Commit e41b5f7

Browse files
committed
add the new message and notification
these are to support -pluginMessage option (new to v8.4.2)
1 parent 8e1b4b4 commit e41b5f7

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

content/docs/plugin-communication.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,24 @@ Please see the enum LangType for all possible values.
511511

512512
---
513513

514+
#### **NPPM_GETCURRENTCMDLINE**
515+
*Get the Current Command Line string. (New to v8.4.2).
516+
Users should call it with commandLineStr as NULL to get the required number of TCHAR (not including the terminating nul character),
517+
allocate commandLineStr buffer with the return value + 1, then call it again to get the current command line string.*
518+
519+
**Parameters**:
520+
521+
*wParam [in]*
522+
: size_t strLen
523+
524+
*lParam [out]*
525+
: TCHAR * commandLineStr
526+
527+
**Return value**:
528+
: Returns the number of TCHAR copied/to copy.
529+
530+
---
531+
514532
#### **NPPM_GETCURRENTCOLUMN**
515533
*Retrieves the column of the caret.*
516534

@@ -2066,6 +2084,17 @@ The general layout of the following notifications look like this
20662084

20672085
---
20682086

2087+
#### **NPPN_CMDLINEPLUGINMSG**
2088+
*To notify plugins that the new argument for plugins (via `-pluginMessage="YOUR_PLUGIN_ARGUMENT"` in [command line](../command-prompt/)) is available. (New to v8.4.2).*
2089+
2090+
**Fields:**
2091+
2092+
code: NPPN_CMDLINEPLUGINMSG
2093+
hwndFrom: hwndNpp
2094+
idFrom: pluginMessage, where pluginMessage is pointer of type wchar_t
2095+
2096+
---
2097+
20692098
#### **NPPN_DARKMODECHANGED**
20702099
*To notify plugins that Dark Mode was changed (either enabled or disabled).
20712100
(Added v8.4.1)*

0 commit comments

Comments
 (0)