<?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[Run an external program]]></title><description><![CDATA[<p dir="auto">Hello to all of you!</p>
<p dir="auto">I use notepad++ on Windows 10 to write my interactive fiction using Inform6 and punyinform. This works fine, but it would be great to automate it a bit further. But up to now, I am not able to get it done.</p>
<p dir="auto">After writing my code I switch to my open editor window…</p>
<p dir="auto">C:\PunyInform\lib</p>
<p dir="auto">and start compiling it with</p>
<p dir="auto">inform6.exe explore.inf</p>
<p dir="auto">where explore.inf is the source code in notepad++. This produces explore.z5</p>
<p dir="auto">After that I start the interpreter Frotz with</p>
<p dir="auto">explore.z5</p>
<p dir="auto">No great effort, but could this be done with one click from notepad++ using macros or a run command?</p>
<p dir="auto">I would be really happy, if you have some tipps for me!</p>
<p dir="auto">Thomas</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/26432/run-an-external-program</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 18:34:16 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/26432.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 Dec 2024 21:12:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Run an external program on Sat, 07 Dec 2024 15:09:54 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> Thank you very much, all works fine;=)</p>
<p dir="auto">Thomas</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98420</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98420</guid><dc:creator><![CDATA[Thomas Hoppe]]></dc:creator><pubDate>Sat, 07 Dec 2024 15:09:54 GMT</pubDate></item><item><title><![CDATA[Reply to Run an external program on Thu, 05 Dec 2024 21:25:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thomas-hoppe" aria-label="Profile: Thomas-Hoppe">@<bdi>Thomas-Hoppe</bdi></a> ,</p>
<p dir="auto">I would recommend the plugin NppExec for such a procedure, as it’s essentially a “batch scripting” language for Notepad++, with a Console for showing the results inside the Notepad++ window.</p>
<p dir="auto">For example, for building c code using the gcc compiler, I have saved a script in NppExec that runs:</p>
<pre><code>NPP_SAVE
cd "$(CURRENT_DIRECTORY)"
gcc -o "$(NAME_PART)" "$(FILE_NAME)"
$(NAME_PART)
</code></pre>
<p dir="auto">This saves the active file, changes into that file’s directory, runs the gcc compiler on the file, and then runs the executable that’s generated.</p>
<p dir="auto">So you would just run your <code>inform6.exe</code> instead of <code>gcc</code> and then <code>explore.z5</code> instead of <code>$(NAME_PART)</code></p>
<p dir="auto">You can have NppExec add your favorite scripts into either the <strong>Macros</strong> menu, or the <strong>Plugins &gt; NppExec</strong> menu (using <strong>Plugins &gt; NppExec &gt; Advanced Options</strong> and then restarting Notepad++).  And then you can use <strong>Settings &gt; Shortcut Mapper &gt; Plugin Commands</strong> and filter for <code>NppExec</code>, so that you can then use <strong>Modify</strong> to add a keyboard shortcut to easily run that NppExec script.</p>
<p dir="auto">You can see some other options in our <a href="/topic/25400">FAQ: Automating Noteapd++</a>, but based on your description, I think this most-closely matches your description.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98407</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98407</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 05 Dec 2024 21:25:48 GMT</pubDate></item></channel></rss>