<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Myoddweb.com &#187; Piger</title>
	<atom:link href="http://www.myoddweb.com/category/piger/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.myoddweb.com</link>
	<description>Myoddweb.com Home of Courseplanner - Flight planner for Flight Simulator</description>
	<lastBuildDate>Tue, 03 May 2011 09:27:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>The &#8220;Hello Dolly&#8221; of piger</title>
		<link>http://www.myoddweb.com/2009/11/25/the-hello-dolly-of-piger/</link>
		<comments>http://www.myoddweb.com/2009/11/25/the-hello-dolly-of-piger/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 21:01:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[Piger]]></category>

		<guid isPermaLink="false">http://www.myoddweb.com/?p=145</guid>
		<description><![CDATA[I created a small c++ plugin to show the basic architecture of the piger plugin. WordPress has a very simple plugin that they called &#8216;Hello Dolly&#8217;, this plugin does not really do much apart from randomly displaying a lyric from &#8220;Hello Dolly&#8221; First things first, download the latest source code of the plugin and we [...]]]></description>
			<content:encoded><![CDATA[<p>I created a small c++ plugin to show the basic architecture of the piger plugin.<br />
<a href="http://wordpress.org/">WordPress</a> has a very simple plugin that they called &#8216;Hello Dolly&#8217;, <a href="http://codex.wordpress.org/Plugins#Default_Plugins">this plugin</a> does not really do much apart from randomly displaying a lyric from &#8220;<a href="http://en.wikipedia.org/wiki/Hello,_Dolly!_%28song%29">Hello Dolly</a>&#8221;</p>
<p>First things first,<a href="https://sourceforge.net/projects/unixpiger/files/"> download the latest source code</a> of the plugin and we will talk about each files in a bit more details.</p>
<p><strong>The file type</strong>:<br />
The file is nothing more than a DLL with an <em>&#8216;.amp&#8217;</em> extension. So when you create your plugin make sure that the output file has a <em>&#8216;.amp&#8217;</em> extension.</p>
<p><strong>The files to include</strong>:<br />
You need to include 2 files, a header(h) file and a library(.lib) file.<br />
<span id="more-145"></span></p>
<pre>// support for PluginAPI
#include "../../api/amplugin/amplugin.h"

// add the libs
#ifdef _DEBUG
#pragma comment(lib, "../../debug/amplugin.lib" )
#else
#pragma comment(lib, "../../release/amplugin.lib" )
#endif</pre>
<p>And in the cpp file, the one and only function.</p>
<pre>PLUGIN_API
AM_RESPONSE am_Msg( AM_MSG msg, WPARAM wParam, LPARAM lParam  )
{
  return AM_RESP_NOT_SUPPORTED;
}</pre>
<p>Some important messages&#8230;</p>
<pre>...
  <span style="color: #3366ff;">switch</span>( msg )
  {
  <span style="color: #3366ff;">case </span>AM_MSG_INIT:   <span style="color: #339966;">// called when the plugin is first loaded.</span>
  <span style="color: #3366ff;">case </span>AM_MSG_DEINIT: <span style="color: #339966;">// called when we are closing the app</span>
  <span style="color: #3366ff;">case </span>AM_MSG_MAIN:   <span style="color: #339966;">// called when one, (or more), of the commands we </span>
                      <span style="color: #339966;">// registered are called.</span>
  }</pre>
<p>When the message &#8216;AM_MSG_INIT&#8217; is called you can add an action using the &#8216;<em>addAction( &#8230; )</em>&#8216; function.</p>
<p>AM_MSG_MAIN will be called when that action is entered.</p>
<p><strong>Things to note</strong>:</p>
<ul>
<li>Place your plugin in the __in folder, (normally found in %appdata%\MyOddWeb\ActionMonitor_d\RootCommands\__in).</li>
<li><strong>Don&#8217;t mix debug and release builds</strong>, to debug your plugin you will need to run it again the debug version of Action monitor, (and the folder is %appdata%\MyOddWeb\<strong>ActionMonitor_d</strong>\RootCommands\__in).</li>
<li>Have a look at the file &#8220;<span style="color: #3366ff;">#include</span><span style="color: #800000;"> &#8220;am_plugins.h&#8221;</span>&#8220;, it explains what most messages do.</li>
<li>Call <strong>[Caps lock] this.reload</strong> to reload <strong><em>everything</em></strong>.</li>
<li>Download <a href="https://sourceforge.net/projects/unixpiger/files/">the plugin code here</a>.</li>
</ul>
<p>Visit <a href="http://forum.myoddweb.com">the forum</a> if you have any technical questions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myoddweb.com/2009/11/25/the-hello-dolly-of-piger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Piger fourm</title>
		<link>http://www.myoddweb.com/2009/11/18/new-piger-fourm/</link>
		<comments>http://www.myoddweb.com/2009/11/18/new-piger-fourm/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 12:10:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[Piger]]></category>

		<guid isPermaLink="false">http://www.myoddweb.com/?p=142</guid>
		<description><![CDATA[I finally got around to creating a new forum for Piger, the main purpose of Piger is to make my life easier . I hate using my keyboard more than I have to, and I hate having to do the same thing over and over again. So a while ago, (a year ago I think), [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got around to creating a <a href="http://forum.myoddweb.com/viewforum.php?f=9">new forum</a> for <a href="https://sourceforge.net/projects/unixpiger/">Piger</a>, the main purpose of Piger is to make my life easier <img src='http://www.myoddweb.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . I hate using my keyboard more than I have to, and I hate having to do the same thing over and over again.</p>
<p>So a while ago, (a year ago I think), I created a small tool that simply takes your keyboard input and runs a pre-programmed script accordingly, it can be anything, from launching calculator to login into your favourite website using another browser that your favourite one.</p>
<p>You can write your scripts in <a href="http://en.wikipedia.org/wiki/Lua_(programming_language)">LUA</a>, C++, <a href="http://en.wikipedia.org/wiki/Python_(programming_language)">Python</a>, or even DOS (batch).</p>
<p><strong>Note</strong>, by default the tool does not write scripts for you, it comes with a few basic scripts but nothing too exiting. So please use <a href="http://forum.myoddweb.com/viewforum.php?f=9">the forums</a> if you have any scripting questions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myoddweb.com/2009/11/18/new-piger-fourm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

