<?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[Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;)]]></title><description><![CDATA[<p dir="auto">Let’s say that I have an instance of N++ running with dual panes and several file tabs open in each pane.  If I get interrupted with a different task that needs a full screen view, I don’t want to shrink one of the panes for my current project because I’ll have a hard time getting them back how they were; instead I want to perform this new task using a completely new, separate window.  I’ve been doing this with the awkward but semi-tolerable sequence of finding an open tab without any unsaved changes, right-clicking it, selecting “Open in New Instance”, and then closing the file in the new instance and opening the file(s) for the side project.  I found <a href="https://community.notepad-plus-plus.org/topic/169/how-to-open-a-new-window">https://community.notepad-plus-plus.org/topic/169/how-to-open-a-new-window</a> , which suggests this is the way to do it, but can’t we have something easier and more intuitive?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23906/finding-available-shortcut-keys-originally-where-s-the-new-window-command</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 08:21:52 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23906.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Dec 2022 03:30:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Fri, 13 Jan 2023 18:03:39 GMT]]></title><description><![CDATA[<p dir="auto">This discussion has stopped being about “new window” or about “shortcut keys”, and really ceased even being about Notepad++.  And now it’s even attracting random posts as well.</p>
<p dir="auto">This topic is being locked.  If anyone has Noteapd++ related discussion, a new topic can be started quite easily; if you need to, provide a link back to this discussion for reference.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83293</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83293</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 13 Jan 2023 18:03:39 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Fri, 13 Jan 2023 16:33:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/27344">@Mendella-Replacement</a> said in <a href="/post/83290">Finding available shortcut keys (originally “Where’s the ‘New Window’ command?”)</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> please can i get your attention? I need help pls</p>
</blockquote>
]]></description><link>https://community.notepad-plus-plus.org/post/83291</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83291</guid><dc:creator><![CDATA[Mendella Replacement]]></dc:creator><pubDate>Fri, 13 Jan 2023 16:33:40 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Fri, 13 Jan 2023 16:26:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> please can i get your attention? I need help pls</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83290</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83290</guid><dc:creator><![CDATA[Mendella Replacement]]></dc:creator><pubDate>Fri, 13 Jan 2023 16:26:37 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Fri, 13 Jan 2023 12:15:31 GMT]]></title><description><![CDATA[<p dir="auto">I don’t know that I like the trend of this thread.  It seems we’re teaching Python??</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83281</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83281</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 13 Jan 2023 12:15:31 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Fri, 13 Jan 2023 12:08:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/5990">@TBugReporter</a></p>
<p dir="auto">Scope problem. An if-block introduces a new scope and the variables defined there are only valid within this scope. Either the comparison with <code>MB_RESULTTRYAGAIN</code> is indented to have it in the same scope, or <code>action_to_take</code> must be defined at the same scoping level as the comparison.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83280</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83280</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Fri, 13 Jan 2023 12:08:48 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Fri, 13 Jan 2023 07:53:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a><br />
I’ve now tried this …</p>
<pre><code>def bailout(msg):
    print(msg)
    user_response = notepad.messageBox(msg, "Error", MB_CANCELTRYCONTINUE | MB_ICONWARNING)
    if user_response == MB_RESULTCANCEL:
        notepad.runPluginCommand('Python Script', 'Stop Script')
    else:
        return user_response

def main():
    # ...
    while True:
        sk_mapper_hwnd = user32.FindWindowW(None, u"Shortcut mapper")
        if not sk_mapper_hwnd:
            action_to_take = bailout("Mapper window not found!")
        if action_to_take != MB_RESULTTRYAGAIN:
            break
    # ...
</code></pre>
<p dir="auto">… but that gives me …</p>
<pre><code>UnboundLocalError: local variable 'action_to_take' referenced before assignment
</code></pre>
<p dir="auto">Where did I go wrong?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83274</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83274</guid><dc:creator><![CDATA[TBugReporter]]></dc:creator><pubDate>Fri, 13 Jan 2023 07:53:17 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Fri, 13 Jan 2023 01:15:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/5990">@TBugReporter</a> ,</p>
<blockquote>
<p dir="auto">It seems to me that that structure won’t do the “code to redo” a first time without first putting up the A/R/I box…?</p>
</blockquote>
<p dir="auto">Then put the code in whatever order you think is logical for your needs.</p>
<pre><code>while True:
   # code to do every loop goes here 
   result = notepad.messageBox('','', MESSAGEBOXFLAGS.ABORTRETRYIGNORE)
   if result != MESSAGEBOXFLAGS.RESULTRETRY:
        break
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/83271</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83271</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 13 Jan 2023 01:15:58 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Fri, 13 Jan 2023 00:48:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a></p>
<p dir="auto">It seems to me that that structure won’t do the “code to redo” a <em>first</em> time without first putting up the A/R/I box…?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83269</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83269</guid><dc:creator><![CDATA[TBugReporter]]></dc:creator><pubDate>Fri, 13 Jan 2023 00:48:41 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Thu, 12 Jan 2023 23:55:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/5990">@TBugReporter</a> said in <a href="/post/83264">Finding available shortcut keys (originally “Where’s the ‘New Window’ command?”)</a>:</p>
<blockquote>
<p dir="auto">Okay, but where do I put the code that I want it to retry</p>
</blockquote>
<pre><code>while True:
    result = notepad.messageBox('','', MESSAGEBOXFLAGS.ABORTRETRYIGNORE)
    if result != MESSAGEBOXFLAGS.RESULTRETRY:
        break
    # code to redo goes here
</code></pre>
<p dir="auto">or alternately, if it makes more sense to you,</p>
<pre><code>while True:
    result = notepad.messageBox('','', MESSAGEBOXFLAGS.ABORTRETRYIGNORE)
    if result == MESSAGEBOXFLAGS.RESULTRETRY:
        # code to redo goes here
    else:
        break
    # code to redo goes here
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/83266</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83266</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 12 Jan 2023 23:55:36 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Thu, 12 Jan 2023 23:42:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> said in <a href="/post/83241">Finding available shortcut keys (originally “Where’s the ‘New Window’ command?”)</a>:</p>
<blockquote>
<pre><code class="language-py">while True:
    result = notepad.messageBox('','', MESSAGEBOXFLAGS.ABORTRETRYIGNORE)
    if result != MESSAGEBOXFLAGS.RESULTRETRY:
        break
</code></pre>
</blockquote>
<p dir="auto">Okay, but where do I put the code that I want it to retry, and where do I put the code that tests whether to show the MessageBox?  (without having to duplicate either of those?)</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> said in <a href="/post/83243">Finding available shortcut keys (originally “Where’s the ‘New Window’ command?”)</a>:</p>
<blockquote>
<p dir="auto">It boggles the mind</p>
</blockquote>
<p dir="auto">Yeah, but isn’t it nice to know that your mind can still be boggled? 😁</p>
<blockquote>
<p dir="auto"><em>Stop Script</em> should only be run from the menus as a last resort</p>
</blockquote>
<p dir="auto">This was a stopgap measure for me - a placeholder until I could understand my difficulties with scope for variables.  I <em>think</em> I got that under control; I just need to test it out and then I’ll do like you said.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83264</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83264</guid><dc:creator><![CDATA[TBugReporter]]></dc:creator><pubDate>Thu, 12 Jan 2023 23:42:23 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Thu, 12 Jan 2023 13:51:35 GMT]]></title><description><![CDATA[<p dir="auto">It boggles the mind that someone would ever think to use the <em>Stop Script</em> menu item, in code, to “bail out”.  Just write code that nicely returns, like <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> 's <code>main</code> example from earlier.  <em>Stop Script</em> should only be run from the menus as a last resort, a “kill my script” kind of thing.  And I don’t think I’ve ever had a need to use it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83243</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83243</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 12 Jan 2023 13:51:35 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Thu, 12 Jan 2023 10:11:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/5990">@TBugReporter</a></p>
<p dir="auto">something like this</p>
<pre><code class="language-py">while True:
    result = notepad.messageBox('','', MESSAGEBOXFLAGS.ABORTRETRYIGNORE)
    if result != MESSAGEBOXFLAGS.RESULTRETRY:
        break
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/83241</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83241</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Thu, 12 Jan 2023 10:11:35 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Thu, 12 Jan 2023 06:27:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a></p>
<p dir="auto"><img src="https://camo.nodebb.org/f686cf5a8904741d3624938c135b151975f7d06c?url=https%3A%2F%2Femojipedia-us.s3.amazonaws.com%2Fsource%2Fmicrosoft-teams%2F337%2Fperson-facepalming_1f926.png" alt="!" class=" img-fluid img-markdown" /><br />
(When the only tools you know about are hammers, all your problems tend to look like nails.)</p>
<hr />
<p dir="auto">And now, question number umpteen-plus-one, regarding this part of your script:</p>
<pre><code>    sk_mapper_hwnd = user32.FindWindowW(None, u'Shortcut mapper')
    if not sk_mapper_hwnd:
        print('Shortcut mapper was not found')
        return

    sys_tab_hwnd = user32.FindWindowExW(sk_mapper_hwnd, None, u'SysTabControl32', None)
    if not sys_tab_hwnd:
        print('SysTabControl32 was not found')
        return

    item_count = user32.SendMessageW(sys_tab_hwnd, TCM_GETITEMCOUNT, 0, 0)
    if not item_count:
        print('TCM_GETITEMCOUNT returned 0')
        return

    babygrid = user32.FindWindowExW(sk_mapper_hwnd, None, u'BABYGRID', None)
    if not babygrid:
        print('BABYGRID was not found')
        return
</code></pre>
<p dir="auto">I’d like to add “Abort, Retry, Ignore?” dialogs to these, but I’m getting tripped up on the “Retry” part.  What would you consider to be the best practice for this?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83237</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83237</guid><dc:creator><![CDATA[TBugReporter]]></dc:creator><pubDate>Thu, 12 Jan 2023 06:27:45 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Thu, 12 Jan 2023 05:43:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/5990">@TBugReporter</a></p>
<p dir="auto">… or you could have used</p>
<pre><code class="language-py">notepad.runPluginCommand('Python Script', 'Stop Script')
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/83236</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83236</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Thu, 12 Jan 2023 05:43:08 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Thu, 12 Jan 2023 03:59:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> said in <a href="/post/83203">Finding available shortcut keys (originally "Where's the 'New Window' command?")</a>:</p>
<blockquote>
<p dir="auto">As for sys.exit, I found out that calling a “main” function and returning from that function serve the same purpose.</p>
</blockquote>
<p dir="auto">Due to the scope errors I’ve been getting, I decided to forego that, and just put everything as immediate commands.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> said in <a href="/post/83219">Finding available shortcut keys (originally “Where’s the ‘New Window’ command?”)</a>:</p>
<blockquote>
<p dir="auto">I’m sure it works great.<br />
IMO though, it seems “heavy”.</p>
</blockquote>
<p dir="auto">At 445 lines for do-nothing sample code, “heavy” seems an understatement. 😁</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/5990">@TBugReporter</a> said in <a href="/post/83197">Finding available shortcut keys (originally “Where’s the ‘New Window’ command?”)</a>:</p>
<blockquote>
<p dir="auto">How can I prematurely end my script (if something weird happens)?</p>
</blockquote>
<p dir="auto">Here’s what I came up with for this:</p>
<pre><code>def bailout(msg):                               # routine to display error message and exit
    print(msg)                                  # duplicate msg to console
    notepad.messageBox(msg, "Error", 0)
    user32.keybd_event(VK_MENU,   0, 0,     0)  # press alt key
    user32.keybd_event(VK_P,      0, 0,     0)  # press P key (to activate "Plugins" menu)
    user32.keybd_event(VK_P,      0, KEYUP, 0)  # release P key
    user32.keybd_event(VK_MENU,   0, KEYUP, 0)  # release alt key
    user32.keybd_event(VK_P,      0, 0,     0)  # press P key (to activate "Python Script" submenu)
    # above assumes no other Plugins starting with "P" are installed
    user32.keybd_event(VK_P,      0, KEYUP, 0)  # release P key
    user32.keybd_event(VK_RIGHT,  0, 0,     0)  # press cursor right key (to enter submenu)
    user32.keybd_event(VK_RIGHT,  0, KEYUP, 0)  # release cursor right key
    user32.keybd_event(VK_DOWN,   0, 0,     0)  # press cursor down key
    user32.keybd_event(VK_DOWN,   0, KEYUP, 0)  # release cursor down key
    user32.keybd_event(VK_DOWN,   0, 0,     0)  # press cursor down key again (to move to "Stop Script")
    user32.keybd_event(VK_DOWN,   0, KEYUP, 0)  # release cursor down key
    user32.keybd_event(VK_RETURN, 0, 0,     0)  # press enter key
    user32.keybd_event(VK_RETURN, 0, KEYUP, 0)  # release enter key
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/83233</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83233</guid><dc:creator><![CDATA[TBugReporter]]></dc:creator><pubDate>Thu, 12 Jan 2023 03:59:31 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Wed, 11 Jan 2023 19:22:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> said in <a href="/post/83221">Finding available shortcut keys (originally “Where’s the ‘New Window’ command?”)</a>:</p>
<blockquote>
<p dir="auto">Of course, and probably more of late, some of mine haven’t exactly been “simple”</p>
</blockquote>
<p dir="auto">:-D for sure !! :-D</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83222</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83222</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 11 Jan 2023 19:22:28 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Wed, 11 Jan 2023 21:12:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> said in <a href="/post/83220">Finding available shortcut keys (originally “Where’s the ‘New Window’ command?”)</a>:</p>
<blockquote>
<p dir="auto">The prompt solution may be fine for simple scripts</p>
</blockquote>
<p dir="auto">“Simple” scripts are really all we should be doing, with a tool such as the PythonScript plugin.</p>
<p dir="auto">Of course, and probably more of late, some of mine haven’t exactly been “simple”, so I’m a violator of my above edict. :-)</p>
<p dir="auto">And maybe sadly, I’ve got a doozy in the in-progress pipeline.  Maybe my excuse for it is, let’s push the limits of a PS.</p>
<p dir="auto">But maybe my overall point is, if I can keep the UI relatively simple-minded, I can spend more time on the “meat” of whatever the script is trying to accomplish.</p>
<p dir="auto">Others can go off and make the UI part as polished (and as complicated and lengthy) as they want to, in their own scripts.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83221</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83221</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 11 Jan 2023 21:12:58 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Wed, 11 Jan 2023 19:17:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a></p>
<p dir="auto">Yes, it is larger than a “prompt” solution, and the TaskDialog is strictly defined by MS. You can only have what it provides.</p>
<p dir="auto">If you want a custom dialog, you have to wrap <a href="https://learn.microsoft.com/en-us/windows/win32/api/_dlgbox/" rel="nofollow ugc">DialogBoxes</a><br />
but that is just as heavy, if not heavier, than the TaskDialog.</p>
<p dir="auto">The prompt solution may be fine for simple scripts, but as soon as you need to parameterize a script with different settings depending on different models, it is much easier to use a guided dialog, at least in my opinion.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83220</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83220</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 11 Jan 2023 19:17:57 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Wed, 11 Jan 2023 19:07:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> said:</p>
<blockquote>
<p dir="auto">(provided code link)<br />
tested with PS 2 and 3.<br />
Note the comment on FindResourceExA<br />
If something is unclear, let me know.</p>
</blockquote>
<p dir="auto">I’m sure it works great.<br />
IMO though, it seems “heavy”.<br />
But…it depends on how much effort one wants to put in, I guess.</p>
<p dir="auto">I mean, that is a lot of lines of code, just for a UI for a script.<br />
When considering that the non-UI part of the code is only going to add to that already large line count, well…</p>
<p dir="auto">Also, there’s no “edit box” type of input demo’d, which seems kind of important when one considers what we’ve been able to do in the past to gather user input from the workhorse <code>notepad.prompt()</code> function.</p>
<p dir="auto">This is by no means an insult to the code provided, just some comments…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83219</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83219</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 11 Jan 2023 19:07:53 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Wed, 11 Jan 2023 18:42:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a></p>
<p dir="auto"><a href="https://gist.github.com/Ekopalypse/5771d3677735816a106ab698b8a989a3" rel="nofollow ugc">tested</a> with PS 2 and 3.<br />
Note the comment on FindResourceExA<br />
If something is unclear, let me know.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83218</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83218</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 11 Jan 2023 18:42:55 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Wed, 11 Jan 2023 16:39:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a></p>
<p dir="auto">I don’t use Tkinter either, but as you said it is an alternative.<br />
90% of my scripts I use have a configuration section, so no dialog at all. The rest use dialogs like the task dialog.<br />
Just my preference - could be done differently.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a></p>
<p dir="auto">The screenshot with the TaskDialog was created with ctypes and the corresponding Win32 API calls.<br />
Give me a few minutes to create a standalone, callable version. I’ll post the link to the gist once I’m done.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83217</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83217</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 11 Jan 2023 16:39:39 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Wed, 11 Jan 2023 14:45:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> ,</p>
<p dir="auto">Was your screenshot created with the Tkinter library, or with raw calls to the TaskDialog?  If with raw calls, could you share the code (as a gist if it’s too long to fit nicely in the forum)?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83215</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83215</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 11 Jan 2023 14:45:49 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Wed, 11 Jan 2023 14:56:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> said in <a href="/post/83203">Finding available shortcut keys (originally “Where’s the ‘New Window’ command?”)</a>:</p>
<blockquote>
<p dir="auto">You can also build your own dialogs with the included Tkinter module</p>
</blockquote>
<p dir="auto">For me, this approach is just “too much” as in “complication” but to each his own.  Maybe I’ve just never liked Tkinter in general.</p>
<p dir="auto">I don’t know, I’ve felt that the “mini UIs” I’ve been able to create with the <code>notepad.prompt()</code> window are lightweight and workable…  A classic example would be in this <a href="https://community.notepad-plus-plus.org/topic/14930">THREAD</a>; see the script in the <code>Dec 16, 2017, 11:03 PM</code> posting.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83214</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83214</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 11 Jan 2023 14:56:55 GMT</pubDate></item><item><title><![CDATA[Reply to Finding available shortcut keys (originally &quot;Where&#x27;s the &#x27;New Window&#x27; command?&quot;) on Wed, 11 Jan 2023 14:40:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a> said in <a href="/post/83199">Finding available shortcut keys (originally “Where’s the ‘New Window’ command?”)</a>:</p>
<blockquote>
<p dir="auto">free-form <code>editor.input()</code> calls</p>
</blockquote>
<p dir="auto">It was pointed out to me that it should have said <code>notepad.prompt()</code> .  sorry for the confusion.  I have updated the original post to not confuse future readers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/83213</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/83213</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 11 Jan 2023 14:40:22 GMT</pubDate></item></channel></rss>