<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>pnotepad.org forums &#187; Topic: [PyPN] script who open all recents files</title>
		<link>http://pnotepad.org/forums/topic/381</link>
		<description>Programmer&#039;s Notepad Forums</description>
		<language>en-US</language>
		<pubDate>Thu, 09 Feb 2012 06:01:02 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://pnotepad.org/forums/search.php</link>
		</textInput>
		<atom:link href="http://pnotepad.org/forums/rss/topic/381" rel="self" type="application/rss+xml" />

		<item>
                        <title>[PyPN] script who open all recents files (MichelClaveau)</title>
			<link>http://pnotepad.org/forums/topic/381#post-1343</link>
			<pubDate>Wed, 16 Apr 2008 13:57:43 +0000</pubDate>
			<dc:creator>MichelClaveau</dc:creator>
			<guid isPermaLink="false">1343@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;&#38;gt; between backticks&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;Hi!
      thanks for the trick&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
                        <title>[PyPN] script who open all recents files (simon)</title>
			<link>http://pnotepad.org/forums/topic/381#post-1341</link>
			<pubDate>Wed, 16 Apr 2008 11:10:40 +0000</pubDate>
			<dc:creator>simon</dc:creator>
			<guid isPermaLink="false">1341@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;You can put your code between backticks to get indenting to work properly:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;@script(&#38;quot;OpenRecents&#38;quot;,&#38;quot;--MCI--&#38;quot;)
def openrecents():
    import _winreg
    hkey=_winreg.OpenKey(_winreg.HKEY_CURRENT_USER, &#38;#39;Software\Echo Software\PN2\MRU&#38;#39;)
    nb = _winreg.EnumValue(hkey, 0)[1]
    for i in range(1,nb+1):
        fichier = _winreg.EnumValue(hkey, i)[1]
        if fichier.endswith(&#38;#39;py&#38;#39;) or fichier.endswith(&#38;#39;PY&#38;#39;):
            selText = pn.OpenDocument(str(fichier),&#38;#39;Python&#38;#39;)&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
                        <title>[PyPN] script who open all recents files (MichelClaveau)</title>
			<link>http://pnotepad.org/forums/topic/381#post-1340</link>
			<pubDate>Wed, 16 Apr 2008 10:36:04 +0000</pubDate>
			<dc:creator>MichelClaveau</dc:creator>
			<guid isPermaLink="false">1340@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Aaaaaaaaaaaaarrrrrrrrgggggggggghhhhhhhhhh!!!!!!!!!!!!.........&#60;/p&#62;
&#60;p&#62;You MUST re-Do indentation....&#60;br /&#62;
(for help: replace &#34;.&#34; with four spaces)
&#60;/p&#62;</description>
		</item>
		<item>
                        <title>[PyPN] script who open all recents files (MichelClaveau)</title>
			<link>http://pnotepad.org/forums/topic/381#post-1339</link>
			<pubDate>Wed, 16 Apr 2008 10:34:52 +0000</pubDate>
			<dc:creator>MichelClaveau</dc:creator>
			<guid isPermaLink="false">1339@http://pnotepad.org/forums/</guid>
			<description>&#60;p&#62;Hi!&#60;/p&#62;
&#60;p&#62;My first script:&#60;/p&#62;
&#60;p&#62;@script(&#34;OpenRecents&#34;,&#34;--MCI--&#34;)&#60;br /&#62;
def openrecents():&#60;br /&#62;
.    import _winreg&#60;br /&#62;
.    hkey=_winreg.OpenKey(_winreg.HKEY_CURRENT_USER, 'Software\Echo Software\PN2\MRU')&#60;br /&#62;
.    nb = _winreg.EnumValue(hkey, 0)[1]&#60;br /&#62;
.    for i in range(1,nb+1):&#60;br /&#62;
..        fichier = _winreg.EnumValue(hkey, i)[1]&#60;br /&#62;
..        if fichier.endswith('py') or fichier.endswith('PY'):&#60;br /&#62;
...            selText = pn.OpenDocument(str(fichier),'Python')
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>

