<?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 to start a search automatically]]></title><description><![CDATA[<p dir="auto">Hello, I want to use a command to start Notepad++ with a certain file, and then start a search automatically, I know how to start Notepad++ by command, but I don’t know is it possible to start a search automatically, does anyone know this? Thanks!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20312/how-to-start-a-search-automatically</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 13:03:26 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20312.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Nov 2020 08:46:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to start a search automatically on Wed, 26 Jul 2023 02:14:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lycan-thrope" aria-label="Profile: Lycan-Thrope">@<bdi>Lycan-Thrope</bdi></a><br />
You also learn to be a bit more polite.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/88123</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/88123</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 26 Jul 2023 02:14:39 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Wed, 26 Jul 2023 01:46:51 GMT]]></title><description><![CDATA[<p dir="auto">@Victorel-Petrovich ,<br />
That’s what <code>Search</code> is for, in the forum’s tools. That also, is probably how <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> is able to find a previous post from you, on the same subject and then link it for you to see.</p>
<p dir="auto">Learn the tools available to you, so you can do things on your own, rather than keep asking others reiteratively. It’s behooves  us to keep as much information contained in an already asked question so that the search won’t have you looking in several different places, because then people get tired of searching multiple threads to get the same questions answered. Understand?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/88119</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/88119</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Wed, 26 Jul 2023 01:46:51 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Tue, 25 Jul 2023 05:12:52 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> Sorry it has annoyed you or others here.</p>
<blockquote>
<p dir="auto">everyone who would see your post here will also be able to see it there.</p>
</blockquote>
<p dir="auto">How do you know that? Are people reading this page redirected automatically to the other page , or what am I missing? I thought people Choose to read a page based on it title, so the sets of readers might not (fully) overlap.</p>
<blockquote>
<p dir="auto">But if the line number solution (which I suggested 15 minutes before you posted this)</p>
</blockquote>
<p dir="auto">I guess my notifications on this site were turned off.</p>
<p dir="auto">But thanks for trying to help, anyway.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/88094</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/88094</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 25 Jul 2023 05:12:52 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Wed, 12 Apr 2023 22:18:39 GMT]]></title><description><![CDATA[<p dir="auto">@Victorel-Petrovich ,</p>
<p dir="auto">You already asked that <a href="https://community.notepad-plus-plus.org/post/85652">over here</a> – no reason to ask twice in the same Community: everyone who would see your post here will also be able to see it there.  It helps no one – not even you – to post the same question in two different topics; and it annoys those of us who are most likely to help you.</p>
<p dir="auto">But if the line number solution (which I suggested 15 minutes before you posted this) will not work for you, the scripting solution explored in this discussion will.  If you are willing to install the PythonScript plugin, it can be made to parse the Notepad++ command line, and it could launch the search for you – even though I think forcing Notepad++ to search the file when your chrome extension should already know the exact line (<code>-n</code>) or character (<code>-p</code>) where the text starts and could pass that to notepad++'s indicated command-line arguments – so if you cannot get <code>-n</code> or <code>-p</code> to work for you, make use of the <code>-pluginMessage</code> option, and write a script to read that message from the PythonScript plugin, and have PS launch the search for you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85655</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85655</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 12 Apr 2023 22:18:39 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Wed, 12 Apr 2023 20:32:57 GMT]]></title><description><![CDATA[<p dir="auto">I’m in a similar need as OP. My use case is: I have a chrome extension (“External Application Launcher” ) that can trigger any other local application to open, with arguments being several possibilities: the current html address , title, and or selection of text.<br />
I would like to be able to select several words, then have that extension call Notepad++ with the reference of the current html file, AND current selection, so that Notepad can open the html file (for editing) AT THE RIGHT PLACE.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85654</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85654</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 12 Apr 2023 20:32:57 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Thu, 19 Nov 2020 20:06:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pbarney" aria-label="Profile: pbarney">@<bdi>pbarney</bdi></a> said in <a href="/post/59880">How to start a search automatically</a>:</p>
<blockquote>
<p dir="auto">Not sure if links are allowed here</p>
</blockquote>
<p dir="auto">Yes, they are - as long as the links point to valuable content connected with the topic of the issue. You can even use the Markdown syntax for embedding links into floating text.</p>
<pre><code>This is a [link to Npp's homepage](https://notepad-plus-plus.org/).
</code></pre>
<p dir="auto">becomes</p>
<p dir="auto">This is a <a href="https://notepad-plus-plus.org/" rel="nofollow ugc">link to Npp’s homepage</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59884</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59884</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Thu, 19 Nov 2020 20:06:28 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Thu, 19 Nov 2020 20:00:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a></p>
<p dir="auto">Nice to hear that you were successful to configure <em>grepWin</em> in a way that it integrates with Notepad++.</p>
<p dir="auto">Indeed, I was too “enthusiastic” about <em>grepWin</em> in my statement above ;-). Sadly it provides no means to navigate to the <strong>column</strong> of a search result.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59882</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59882</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Thu, 19 Nov 2020 20:00:32 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Thu, 19 Nov 2020 19:44:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kaifuzi" aria-label="Profile: kaifuzi">@<bdi>kaifuzi</bdi></a> Another approach that might provide more flexibility is to use a third-party macro program like AutoHotKey, which is a standard for power users. You can create macros that can automate things in any program you use, including the operating system.</p>
<p dir="auto">Not sure if links are allowed here, but it should be pretty easy to find. There are a million different examples on the web for how to do something like this, but I think your task would be incredibly easy.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59880</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59880</guid><dc:creator><![CDATA[pbarney]]></dc:creator><pubDate>Thu, 19 Nov 2020 19:44:00 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Thu, 19 Nov 2020 19:30:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said in <a href="/post/59867">How to start a search automatically</a>:</p>
<blockquote>
<p dir="auto">I took a deeper look into this, and I didn’t see how to configure these two things as described.</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dinkumoil" aria-label="Profile: dinkumoil">@<bdi>dinkumoil</bdi></a></p>
<p dir="auto">Never mind; I see it now.<br />
It could have been I was using an older version at first where this wasn’t supported.  (Or I just missed it)<br />
On the latest (2.0.4) now and this configuration is available by pressing the <em>Settings</em> button on the <em>grepWin</em> UI.<br />
Nothing about it in the Help stuff that I saw, though.</p>
<p dir="auto">It can only be configured to jump to the <em>line</em> of the match; having a <em>column</em> jump would make this truly useful.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59879</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59879</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 19 Nov 2020 19:30:49 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Thu, 19 Nov 2020 17:22:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dinkumoil" aria-label="Profile: dinkumoil">@<bdi>dinkumoil</bdi></a> said in <a href="/post/59808">How to start a search automatically</a>:</p>
<blockquote>
<p dir="auto">(grepWin) can be configured to start Notepad++ or any other text editor by double-clicking its search results. It is even possible to place the cursor in Notepad++ at a certain search result using the appropriate Npp command line options.</p>
</blockquote>
<p dir="auto">I took a deeper look into this, and I didn’t see how to configure these two things as described.  Can you elaborate, <a class="plugin-mentions-user plugin-mentions-a" href="/user/dinkumoil" aria-label="Profile: dinkumoil">@<bdi>dinkumoil</bdi></a> ?  Note that the double-clicking might be straightforward using a file association, but I don’t like those and would hope that there is another way.</p>
<p dir="auto">I do realize that this isn’t a <em>grepWin</em> support forum, but we are talking about “integration” with Notepad++, so I think it is OK.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59867</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59867</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 19 Nov 2020 17:22:28 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Thu, 19 Nov 2020 13:28:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dinkumoil" aria-label="Profile: dinkumoil">@<bdi>dinkumoil</bdi></a> said in <a href="/post/59808">How to start a search automatically</a>:</p>
<blockquote>
<p dir="auto">I would like to recommend using the tool grepWin for searching</p>
</blockquote>
<p dir="auto">A nice thing about this is that <em>grepWin</em> uses the Boost regex engine, just like Notepad++, so if you are very familiar with doing “advanced” searching with regular expressions in Notepad++, you’d feel very familiar with doing it in <em>grepWin</em>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59852</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59852</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 19 Nov 2020 13:28:24 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Wed, 18 Nov 2020 13:01:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kaifuzi" aria-label="Profile: kaifuzi">@<bdi>kaifuzi</bdi></a></p>
<p dir="auto">One more note about your code.<br />
I notice that you do not set up ALL of the controls on the <em>Find</em> window before running your search.<br />
It could be dangerous (i.e. wrong results) in certain circumstances, e.g. <em>Match case</em> checkbox is set one way but logically the user of your code thinks it is set the other way.<br />
So you may want to add more code to specify the settings on other parameters that may affect your search.<br />
Just an FYI.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59816</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59816</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 18 Nov 2020 13:01:50 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Wed, 18 Nov 2020 09:13:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kaifuzi" aria-label="Profile: kaifuzi">@<bdi>kaifuzi</bdi></a></p>
<p dir="auto">The whole approach to remotely control Notepad++ via a VB or C# program seems to take too much effort and is not very reliable. Thus, I would like to recommend using the tool <em>grepWin</em> for searching (download it from <a href="https://github.com/stefankueng/grepWin/releases" rel="nofollow ugc">&gt;&gt; here &lt;&lt;</a>). It provides subfolder recursion, regular expression search (and replace), folder exclusion by pattern and filtering by file type, size and time stamp.</p>
<p dir="auto">This tool integrates itself into the Windows Explorer files and folders context menu, can also be started via command line/batch script (providing a lot of <a href="https://tools.stefankueng.com/grepWin_cmd.html" rel="nofollow ugc">command line options</a>) and can be configured to start Notepad++ or any other text editor by double-clicking its search results. It is even possible to place the cursor in Notepad++ at a certain search result using the appropriate Npp command line options.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59808</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59808</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Wed, 18 Nov 2020 09:13:17 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Wed, 18 Nov 2020 07:27:45 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> Yes, you are right, there is no function WaitWindow and WaitWindowLike in raw win32 api. Then before I have better solution, I will use loop to wait handle.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59805</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59805</guid><dc:creator><![CDATA[kaifuzi]]></dc:creator><pubDate>Wed, 18 Nov 2020 07:27:45 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Tue, 17 Nov 2020 20:53:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kaifuzi" aria-label="Profile: kaifuzi">@<bdi>kaifuzi</bdi></a> said in <a href="/post/59796">How to start a search automatically</a>:</p>
<blockquote>
<p dir="auto">I will try WaitWindow funciton.</p>
</blockquote>
<p dir="auto">I don’t think they exist in the raw win32 api.  I think they are just wrappers in that specific Perl library.  But if you can find them for your library, great.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59797</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59797</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 17 Nov 2020 20:53:21 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Tue, 17 Nov 2020 19:53:36 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> Thanks for your suggestion! Yes, for now, waiting the handle it’s enought for me. But I will try WaitWindow funciton.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59796</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59796</guid><dc:creator><![CDATA[kaifuzi]]></dc:creator><pubDate>Tue, 17 Nov 2020 19:53:36 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Tue, 17 Nov 2020 19:32:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kaifuzi" aria-label="Profile: kaifuzi">@<bdi>kaifuzi</bdi></a> ,</p>
<blockquote>
<p dir="auto">I use a loop to wait the Notepad++ handle. But I don’t think this is a good solution</p>
</blockquote>
<p dir="auto">Waiting for a handle is not bad practice.  In the Perl Win32::GuiTest library previously mentioned, two of the commonly-used wrapper functions are <a href="https://metacpan.org/source/KARASIK/Win32-GuiTest-1.64/lib%2FWin32%2FGuiTest.pm#L849-893" rel="nofollow ugc"><code>WaitWindow</code> and <code>WaitWindowLike</code></a>, which wrap around the <code>FindWindow</code> interface, like you’ve done.  That’s really the best way to make sure the Window exists after you’ve created it.</p>
<p dir="auto">Unfortunately, there isn’t a similar “it exists, but is it <em>ready</em> for me?” call.  Sometimes, I’ve found that trying to edit the text or launch menus immediately after the window exists will intermittently fail; in those cases, I add a 100ms or 1s delay (normally, what I’m automating in Notepad++ isn’t time critical; one second difference doesn’t matter).</p>
<p dir="auto">So I think wait-for-hwnd is a good first step; if that’s not sufficient, wait a bit after you have the handle before trying to do something with it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59795</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59795</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 17 Nov 2020 19:32:14 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Tue, 17 Nov 2020 19:17:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> Yes, in my code, I use a loop to wait the Notepad++ handle. But I don’t think this is a good solution:</p>
<pre><code>Dim hNppWnd As IntPtr = IntPtr.Zero
While CInt(hNppWnd) = 0
    hNppWnd = FindWindow("Notepad++", fileFullPath &amp; " - Notepad++")  'Notepad++ handle
    i += 1
    If i &gt; 10 ^ 5 Then
        MsgBox("Timeout!" &amp; Environment.NewLine &amp; "Please run this command again.", MsgBoxStyle.Exclamation, "Warning")
        Exit While
    End If
End While
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/59794</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59794</guid><dc:creator><![CDATA[kaifuzi]]></dc:creator><pubDate>Tue, 17 Nov 2020 19:17:27 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Tue, 17 Nov 2020 13:59:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kaifuzi" aria-label="Profile: kaifuzi">@<bdi>kaifuzi</bdi></a> said in <a href="/post/59775">How to start a search automatically</a>:</p>
<blockquote>
<p dir="auto">When I use ShellExexute to open a file by Notepad++, I don’t know when it’s ready, I mean I can get the handle of Notepad++. So I use a loop to wait, once the handle value of Notepad++ is greater than 0, then I think Notepad++ it’s ready, then I can start search.</p>
</blockquote>
<p dir="auto">It appears from your code that you found a solution to this?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59787</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59787</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 17 Nov 2020 13:59:51 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Tue, 17 Nov 2020 12:46:04 GMT]]></title><description><![CDATA[<pre><code>Public Sub NppFindAllInCurDoc(ByVal fileFullPath As String, ByVal searchString As String)
    Dim i As Integer = 0
    Dim hNppWnd As IntPtr = IntPtr.Zero
    While CInt(hNppWnd) = 0
        hNppWnd = FindWindow("Notepad++", fileFullPath &amp; " - Notepad++")  'Notepad++ handle
        i += 1
        If i &gt; 10 ^ 5 Then
            MsgBox("Timeout!" &amp; Environment.NewLine &amp; "Please run this command again.", MsgBoxStyle.Exclamation, "Warning")
            Exit While
        End If
    End While

    If CInt(hNppWnd) &gt; 0 Then
        'Open find dialog
        SendMessage(hNppWnd, NppMessage.NPPM_MENUCOMMAND, 0, New IntPtr(NppCmdID.IDM_SEARCH_FIND))
        'Get find dialog
        Dim hFindWnd As IntPtr = IntPtr.Zero
        Dim hChildWnd As IntPtr = IntPtr.Zero
        hFindWnd = FindWindow("#32770", "Find")  'Find dialog handle
        hChildWnd = FindWindowEx(hFindWnd, IntPtr.Zero, "ComboBox", vbNullString)
        hChildWnd = FindWindowEx(hChildWnd, IntPtr.Zero, "Edit", vbNullString)
        SendMessage(hChildWnd, WindowMessage.WM_SETTEXT, 0, searchString)
        'Start search
        hChildWnd = FindWindowEx(hFindWnd, IntPtr.Zero, "Button", "Find All in Current &amp;Document")
        SendMessage(hChildWnd, WindowMessage.BM_CLICK, 0, IntPtr.Zero)
    End If
End Sub
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/59785</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59785</guid><dc:creator><![CDATA[kaifuzi]]></dc:creator><pubDate>Tue, 17 Nov 2020 12:46:04 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Tue, 17 Nov 2020 12:42:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> Yes, that’s good, I will post my code in there. I did it in <a href="http://VB.net" rel="nofollow ugc">VB.net</a>, same for C#.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59784</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59784</guid><dc:creator><![CDATA[kaifuzi]]></dc:creator><pubDate>Tue, 17 Nov 2020 12:42:58 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Tue, 17 Nov 2020 12:40:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kaifuzi" aria-label="Profile: kaifuzi">@<bdi>kaifuzi</bdi></a> said in <a href="/post/59769">How to start a search automatically</a>:</p>
<blockquote>
<p dir="auto">I did it, thanks a lot for your help!!!</p>
</blockquote>
<p dir="auto">Well, that’s good.<br />
It is sort of tradition to provide more details in the form of code about your working solution, for those that read this later wanting to do the same or a similar thing.<br />
Not mandatory, though.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59783</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59783</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 17 Nov 2020 12:40:23 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Tue, 17 Nov 2020 00:10:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> In fact, I sitll have a small issue. When I use ShellExexute to open a file by Notepad++, I don’t know when it’s ready, I mean I can get the handle of Notepad++. So I use a loop to wait, once the handle value of Notepad++ is greater than 0, then I think Notepad++ it’s ready, then I can start search. I’m not sure is there any other best way.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59775</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59775</guid><dc:creator><![CDATA[kaifuzi]]></dc:creator><pubDate>Tue, 17 Nov 2020 00:10:41 GMT</pubDate></item><item><title><![CDATA[Reply to How to start a search automatically on Mon, 16 Nov 2020 22:39:30 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> <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> I did it, thanks a lot for your help!!!<br />
I use FindWindow and FindWindowEx to get window handles which I need, then I use SendMessage to control them, with NPPM_MENUCOMMAND I can open Find dialog.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59769</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59769</guid><dc:creator><![CDATA[kaifuzi]]></dc:creator><pubDate>Mon, 16 Nov 2020 22:39:30 GMT</pubDate></item></channel></rss>