<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How can I find the value to send to Notepad++ through send message.]]></title><description><![CDATA[<p dir="auto">Greetings, I want to use the send message functionality to get the current line number and column from Notepad++ by an external program which is AutoHotKey. AutoHotKey requires the message to be a number, and not a code like (NPPM_GETCURRENTLINE or NPPM_GETCURRENTCOLUMN)<br />
I looked at the “Notepad_plus_msgs.h” file but the #define lines are slightly ambiguous and I can’t seem to find the number that I should send to notepad++ to get the current line number and column number.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24412/how-can-i-find-the-value-to-send-to-notepad-through-send-message</link><generator>RSS for Node</generator><lastBuildDate>Thu, 15 Oct 2026 13:56:37 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24412.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Apr 2023 16:52:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How can I find the value to send to Notepad++ through send message. on Sat, 29 Apr 2023 00:42:41 GMT]]></title><description><![CDATA[<p dir="auto">This is great! Thank you all for your comments and suggestions, and a special thanks goes to <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> for providing the table.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86009</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86009</guid><dc:creator><![CDATA[asadMarmash]]></dc:creator><pubDate>Sat, 29 Apr 2023 00:42:41 GMT</pubDate></item><item><title><![CDATA[Reply to How can I find the value to send to Notepad++ through send message. on Sat, 29 Apr 2023 00:38:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> I totally overlooked the 0x0400 on the top, I looked at the table below and got confused :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86008</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86008</guid><dc:creator><![CDATA[asadMarmash]]></dc:creator><pubDate>Sat, 29 Apr 2023 00:38:53 GMT</pubDate></item><item><title><![CDATA[Reply to How can I find the value to send to Notepad++ through send message. on Fri, 28 Apr 2023 12:26:02 GMT]]></title><description><![CDATA[<p dir="auto">Here’s a table for the plugin messages; hopefully complete – it’s autogenerated so I just “spot-checked”.  It should be current to N++ v8.5.2.</p>
<p dir="auto">(Aside: making it gave me the first practical use for the script from <a href="https://community.notepad-plus-plus.org/topic/24325">THIS</a> thread.  What I needed was remarkably similar to the OP’s need from that thread!)</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>NPPM_xxx</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>NPPM_GETCURRENTSCINTILLA</td>
<td>2028</td>
</tr>
<tr>
<td>NPPM_GETCURRENTLANGTYPE</td>
<td>2029</td>
</tr>
<tr>
<td>NPPM_SETCURRENTLANGTYPE</td>
<td>2030</td>
</tr>
<tr>
<td>NPPM_GETNBOPENFILES</td>
<td>2031</td>
</tr>
<tr>
<td>NPPM_GETOPENFILENAMES</td>
<td>2032</td>
</tr>
<tr>
<td>NPPM_MODELESSDIALOG</td>
<td>2036</td>
</tr>
<tr>
<td>NPPM_GETNBSESSIONFILES</td>
<td>2037</td>
</tr>
<tr>
<td>NPPM_GETSESSIONFILES</td>
<td>2038</td>
</tr>
<tr>
<td>NPPM_SAVESESSION</td>
<td>2039</td>
</tr>
<tr>
<td>NPPM_SAVECURRENTSESSION</td>
<td>2040</td>
</tr>
<tr>
<td>NPPM_GETOPENFILENAMESPRIMARY</td>
<td>2041</td>
</tr>
<tr>
<td>NPPM_GETOPENFILENAMESSECOND</td>
<td>2042</td>
</tr>
<tr>
<td>NPPM_CREATESCINTILLAHANDLE</td>
<td>2044</td>
</tr>
<tr>
<td>NPPM_DESTROYSCINTILLAHANDLE</td>
<td>2045</td>
</tr>
<tr>
<td>NPPM_GETNBUSERLANG</td>
<td>2046</td>
</tr>
<tr>
<td>NPPM_GETCURRENTDOCINDEX</td>
<td>2047</td>
</tr>
<tr>
<td>NPPM_SETSTATUSBAR</td>
<td>2048</td>
</tr>
<tr>
<td>NPPM_GETMENUHANDLE</td>
<td>2049</td>
</tr>
<tr>
<td>NPPM_ENCODESCI</td>
<td>2050</td>
</tr>
<tr>
<td>NPPM_DECODESCI</td>
<td>2051</td>
</tr>
<tr>
<td>NPPM_ACTIVATEDOC</td>
<td>2052</td>
</tr>
<tr>
<td>NPPM_LAUNCHFINDINFILESDLG</td>
<td>2053</td>
</tr>
<tr>
<td>NPPM_DMMSHOW</td>
<td>2054</td>
</tr>
<tr>
<td>NPPM_DMMHIDE</td>
<td>2055</td>
</tr>
<tr>
<td>NPPM_DMMUPDATEDISPINFO</td>
<td>2056</td>
</tr>
<tr>
<td>NPPM_DMMREGASDCKDLG</td>
<td>2057</td>
</tr>
<tr>
<td>NPPM_LOADSESSION</td>
<td>2058</td>
</tr>
<tr>
<td>NPPM_DMMVIEWOTHERTAB</td>
<td>2059</td>
</tr>
<tr>
<td>NPPM_RELOADFILE</td>
<td>2060</td>
</tr>
<tr>
<td>NPPM_SWITCHTOFILE</td>
<td>2061</td>
</tr>
<tr>
<td>NPPM_SAVECURRENTFILE</td>
<td>2062</td>
</tr>
<tr>
<td>NPPM_SAVEALLFILES</td>
<td>2063</td>
</tr>
<tr>
<td>NPPM_SETMENUITEMCHECK</td>
<td>2064</td>
</tr>
<tr>
<td>NPPM_ADDTOOLBARICON_DEPRECATED</td>
<td>2065</td>
</tr>
<tr>
<td>NPPM_GETWINDOWSVERSION</td>
<td>2066</td>
</tr>
<tr>
<td>NPPM_DMMGETPLUGINHWNDBYNAME</td>
<td>2067</td>
</tr>
<tr>
<td>NPPM_MAKECURRENTBUFFERDIRTY</td>
<td>2068</td>
</tr>
<tr>
<td>NPPM_GETENABLETHEMETEXTUREFUNC_DEPRECATED</td>
<td>2069</td>
</tr>
<tr>
<td>NPPM_GETPLUGINSCONFIGDIR</td>
<td>2070</td>
</tr>
<tr>
<td>NPPM_MSGTOPLUGIN</td>
<td>2071</td>
</tr>
<tr>
<td>NPPM_MENUCOMMAND</td>
<td>2072</td>
</tr>
<tr>
<td>NPPM_TRIGGERTABBARCONTEXTMENU</td>
<td>2073</td>
</tr>
<tr>
<td>NPPM_GETNPPVERSION</td>
<td>2074</td>
</tr>
<tr>
<td>NPPM_HIDETABBAR</td>
<td>2075</td>
</tr>
<tr>
<td>NPPM_ISTABBARHIDDEN</td>
<td>2076</td>
</tr>
<tr>
<td>NPPM_GETPOSFROMBUFFERID</td>
<td>2081</td>
</tr>
<tr>
<td>NPPM_GETFULLPATHFROMBUFFERID</td>
<td>2082</td>
</tr>
<tr>
<td>NPPM_GETBUFFERIDFROMPOS</td>
<td>2083</td>
</tr>
<tr>
<td>NPPM_GETCURRENTBUFFERID</td>
<td>2084</td>
</tr>
<tr>
<td>NPPM_RELOADBUFFERID</td>
<td>2085</td>
</tr>
<tr>
<td>NPPM_GETBUFFERLANGTYPE</td>
<td>2088</td>
</tr>
<tr>
<td>NPPM_SETBUFFERLANGTYPE</td>
<td>2089</td>
</tr>
<tr>
<td>NPPM_GETBUFFERENCODING</td>
<td>2090</td>
</tr>
<tr>
<td>NPPM_SETBUFFERENCODING</td>
<td>2091</td>
</tr>
<tr>
<td>NPPM_GETBUFFERFORMAT</td>
<td>2092</td>
</tr>
<tr>
<td>NPPM_SETBUFFERFORMAT</td>
<td>2093</td>
</tr>
<tr>
<td>NPPM_HIDETOOLBAR</td>
<td>2094</td>
</tr>
<tr>
<td>NPPM_ISTOOLBARHIDDEN</td>
<td>2095</td>
</tr>
<tr>
<td>NPPM_HIDEMENU</td>
<td>2096</td>
</tr>
<tr>
<td>NPPM_ISMENUHIDDEN</td>
<td>2097</td>
</tr>
<tr>
<td>NPPM_HIDESTATUSBAR</td>
<td>2098</td>
</tr>
<tr>
<td>NPPM_ISSTATUSBARHIDDEN</td>
<td>2099</td>
</tr>
<tr>
<td>NPPM_GETSHORTCUTBYCMDID</td>
<td>2100</td>
</tr>
<tr>
<td>NPPM_DOOPEN</td>
<td>2101</td>
</tr>
<tr>
<td>NPPM_SAVECURRENTFILEAS</td>
<td>2102</td>
</tr>
<tr>
<td>NPPM_GETCURRENTNATIVELANGENCODING</td>
<td>2103</td>
</tr>
<tr>
<td>NPPM_ALLOCATESUPPORTED</td>
<td>2104</td>
</tr>
<tr>
<td>NPPM_ALLOCATECMDID</td>
<td>2105</td>
</tr>
<tr>
<td>NPPM_ALLOCATEMARKER</td>
<td>2106</td>
</tr>
<tr>
<td>NPPM_GETLANGUAGENAME</td>
<td>2107</td>
</tr>
<tr>
<td>NPPM_GETLANGUAGEDESC</td>
<td>2108</td>
</tr>
<tr>
<td>NPPM_SHOWDOCLIST</td>
<td>2109</td>
</tr>
<tr>
<td>NPPM_ISDOCLISTSHOWN</td>
<td>2110</td>
</tr>
<tr>
<td>NPPM_GETAPPDATAPLUGINSALLOWED</td>
<td>2111</td>
</tr>
<tr>
<td>NPPM_GETCURRENTVIEW</td>
<td>2112</td>
</tr>
<tr>
<td>NPPM_DOCLISTDISABLEEXTCOLUMN</td>
<td>2113</td>
</tr>
<tr>
<td>NPPM_GETEDITORDEFAULTFOREGROUNDCOLOR</td>
<td>2114</td>
</tr>
<tr>
<td>NPPM_GETEDITORDEFAULTBACKGROUNDCOLOR</td>
<td>2115</td>
</tr>
<tr>
<td>NPPM_SETSMOOTHFONT</td>
<td>2116</td>
</tr>
<tr>
<td>NPPM_SETEDITORBORDEREDGE</td>
<td>2117</td>
</tr>
<tr>
<td>NPPM_SAVEFILE</td>
<td>2118</td>
</tr>
<tr>
<td>NPPM_DISABLEAUTOUPDATE</td>
<td>2119</td>
</tr>
<tr>
<td>NPPM_REMOVESHORTCUTBYCMDID</td>
<td>2120</td>
</tr>
<tr>
<td>NPPM_GETPLUGINHOMEPATH</td>
<td>2121</td>
</tr>
<tr>
<td>NPPM_GETSETTINGSONCLOUDPATH</td>
<td>2122</td>
</tr>
<tr>
<td>NPPM_SETLINENUMBERWIDTHMODE</td>
<td>2123</td>
</tr>
<tr>
<td>NPPM_GETLINENUMBERWIDTHMODE</td>
<td>2124</td>
</tr>
<tr>
<td>NPPM_ADDTOOLBARICON_FORDARKMODE</td>
<td>2125</td>
</tr>
<tr>
<td>NPPM_DOCLISTDISABLEPATHCOLUMN</td>
<td>2126</td>
</tr>
<tr>
<td>NPPM_GETEXTERNALLEXERAUTOINDENTMODE</td>
<td>2127</td>
</tr>
<tr>
<td>NPPM_SETEXTERNALLEXERAUTOINDENTMODE</td>
<td>2128</td>
</tr>
<tr>
<td>NPPM_ISAUTOINDENTON</td>
<td>2129</td>
</tr>
<tr>
<td>NPPM_GETCURRENTMACROSTATUS</td>
<td>2130</td>
</tr>
<tr>
<td>NPPM_ISDARKMODEENABLED</td>
<td>2131</td>
</tr>
<tr>
<td>NPPM_GETDARKMODECOLORS</td>
<td>2132</td>
</tr>
<tr>
<td>NPPM_GETCURRENTCMDLINE</td>
<td>2133</td>
</tr>
<tr>
<td>NPPM_CREATELEXER</td>
<td>2134</td>
</tr>
<tr>
<td>NPPM_GETBOOKMARKID</td>
<td>2135</td>
</tr>
<tr>
<td>NPPM_ALLOCATEINDICATOR</td>
<td>2137</td>
</tr>
<tr>
<td>NPPM_GETFULLCURRENTPATH</td>
<td>4025</td>
</tr>
<tr>
<td>NPPM_GETCURRENTDIRECTORY</td>
<td>4026</td>
</tr>
<tr>
<td>NPPM_GETFILENAME</td>
<td>4027</td>
</tr>
<tr>
<td>NPPM_GETNAMEPART</td>
<td>4028</td>
</tr>
<tr>
<td>NPPM_GETEXTPART</td>
<td>4029</td>
</tr>
<tr>
<td>NPPM_GETCURRENTWORD</td>
<td>4030</td>
</tr>
<tr>
<td>NPPM_GETNPPDIRECTORY</td>
<td>4031</td>
</tr>
<tr>
<td>NPPM_GETCURRENTLINE</td>
<td>4032</td>
</tr>
<tr>
<td>NPPM_GETCURRENTCOLUMN</td>
<td>4033</td>
</tr>
<tr>
<td>NPPM_GETNPPFULLFILEPATH</td>
<td>4034</td>
</tr>
<tr>
<td>NPPM_GETFILENAMEATCURSOR</td>
<td>4035</td>
</tr>
<tr>
<td>NPPM_GETCURRENTLINESTR</td>
<td>4036</td>
</tr>
</tbody>
</table>
]]></description><link>https://community.notepad-plus-plus.org/post/85989</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85989</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 28 Apr 2023 12:26:02 GMT</pubDate></item><item><title><![CDATA[Reply to How can I find the value to send to Notepad++ through send message. on Fri, 28 Apr 2023 05:25:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/asadmarmash" aria-label="Profile: asadMarmash">@<bdi>asadMarmash</bdi></a> said in <a href="/post/85978">How can I find the value to send to Notepad++ through send message.</a>:</p>
<blockquote>
<p dir="auto">I had to calculate the number myself</p>
</blockquote>
<p dir="auto">Another way is to let the <em>NppExec</em> plugin do the math. Install this plugin via <em>PluginsAdmin</em> and open its console. Then type:</p>
<pre><code class="language-Z">set $(var) ~ NPPM_GETCURRENTLINE
echo $(var)
</code></pre>
<p dir="auto">The output will be (as expected) 4032.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85984</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85984</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Fri, 28 Apr 2023 05:25:28 GMT</pubDate></item><item><title><![CDATA[Reply to How can I find the value to send to Notepad++ through send message. on Thu, 27 Apr 2023 17:51:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/asadmarmash" aria-label="Profile: asadMarmash">@<bdi>asadMarmash</bdi></a> said in <a href="/post/85978">How can I find the value to send to Notepad++ through send message.</a>:</p>
<blockquote>
<p dir="auto">I had to calculate the number myself</p>
</blockquote>
<p dir="auto">Correct.</p>
<blockquote>
<p dir="auto">and assume WM_USER to be equal to 1024</p>
</blockquote>
<p dir="auto">That’s a given, not an assumption, per MS documentation for <a href="https://learn.microsoft.com/en-us/windows/win32/winmsg/wm-user" rel="nofollow ugc">WM_USER</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/85979</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85979</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 27 Apr 2023 17:51:24 GMT</pubDate></item><item><title><![CDATA[Reply to How can I find the value to send to Notepad++ through send message. on Thu, 27 Apr 2023 16:58:57 GMT]]></title><description><![CDATA[<p dir="auto">I figured it out, I had to calculate the number myself and assume WM_USER to be equal to 1024. So for example for NPPM_GETCURRENTLINE, it is 1024 + 3000 + 8 which is equal to 4032.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85978</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85978</guid><dc:creator><![CDATA[asadMarmash]]></dc:creator><pubDate>Thu, 27 Apr 2023 16:58:57 GMT</pubDate></item></channel></rss>