<?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>Dave Amenta .com &#187; CLI</title>
	<atom:link href="http://www.daveamenta.com/tag/cli/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daveamenta.com</link>
	<description>(dot (at dave daveamenta) com)</description>
	<lastBuildDate>Tue, 31 Jan 2012 17:22:23 +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>Set Digsby Status from Command Line</title>
		<link>http://www.daveamenta.com/2008-07/set-digsby-status-from-command-line/</link>
		<comments>http://www.daveamenta.com/2008-07/set-digsby-status-from-command-line/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 03:03:33 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Digsby]]></category>
		<category><![CDATA[DigsbyStatus]]></category>
		<category><![CDATA[DigsbyTwitter]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.daveamenta.com/?p=76</guid>
		<description><![CDATA[There was a request today on the Digsby forums about setting the status based on a twitter feed.  I thought this was a great idea, since this is something I could use.  Normally I don&#8217;t use status message at all &#8211; but I do twitter. I set to work figuring out how to set the [...]]]></description>
			<content:encoded><![CDATA[<p>There was a request today on the <a href="http://www.digsby.com">Digsby</a> forums about setting the status based on a twitter feed.  I thought this was a great idea, since this is something I could use.  Normally I don&#8217;t use status message at all &#8211; but I do twitter.</p>
<p>I set to work figuring out how to set the status from outside the application.  I went with the same approach that I had used before, simulating a local user via Win32 Window messages.  This is a great solution because it doesn&#8217;t interfere with any actions that a user may be performing locally &#8211; you don&#8217;t even know it is happening.</p>
<p>I broke this project up into the two logical components, the part that gets the twitter feed and the part that actually does the work of setting the status.  What I&#8217;ve come up with is a little command line utility to set the status.</p>
<p>It can be used like so:</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;">DigsbyStatus.<span style="color: #202020;">exe</span> <span style="color: #ff0000;">&quot;This is my new status message&quot;</span></pre></div></div>

<p>Or, to clear the status:</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;">DigsbyStatus.<span style="color: #202020;">exe</span> <span style="color: #ff0000;">&quot;&quot;</span></pre></div></div>

<p>Quotes are needed as to simulate a &#8220;blank&#8221; argument.  The status classification can&#8217;t be changed, so you will still be available or away based on the protocol and the last state of the computer.  I figure someone else might find this useful to, say, update status based on some unsupported media player.</p>
<p>Download: <a href="/download/DigsbyStatus_100.zip">DigsbyStatus_100.zip</a> [10KB]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daveamenta.com/2008-07/set-digsby-status-from-command-line/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

