<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Give The Power of Speech and Sound to Your PowerShell Scripts</title>
	<atom:link href="http://www.chinhdo.com/20100116/give-the-power-of-speech-and-sound-to-your-powershell-scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chinhdo.com/20100116/give-the-power-of-speech-and-sound-to-your-powershell-scripts/</link>
	<description>Chinh's not quite random thoughts on software development, .NET, gadgets, and other things.</description>
	<lastBuildDate>Wed, 01 Feb 2012 12:26:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Chinh Do</title>
		<link>http://www.chinhdo.com/20100116/give-the-power-of-speech-and-sound-to-your-powershell-scripts/comment-page-1/#comment-78203</link>
		<dc:creator>Chinh Do</dc:creator>
		<pubDate>Tue, 20 Apr 2010 23:29:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.chinhdo.com/20100120/give-the-power-of-speech-and-sound-to-your-powershell-scripts/#comment-78203</guid>
		<description>Hi BRW:

This is a very useful tip, thanks! If you don&#039;t mind, I will update my article with your code later.

Chinh</description>
		<content:encoded><![CDATA[<p>Hi BRW:</p>
<p>This is a very useful tip, thanks! If you don&#8217;t mind, I will update my article with your code later.</p>
<p>Chinh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BRW</title>
		<link>http://www.chinhdo.com/20100116/give-the-power-of-speech-and-sound-to-your-powershell-scripts/comment-page-1/#comment-78200</link>
		<dc:creator>BRW</dc:creator>
		<pubDate>Tue, 20 Apr 2010 15:03:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.chinhdo.com/20100120/give-the-power-of-speech-and-sound-to-your-powershell-scripts/#comment-78200</guid>
		<description>If you are going to create the notify object, its also a good idea to remove it.

I have some code below with an example.

Using  --&gt;   $objNotifyIcon.Dispose

I wrote this code for PowerShell v1.0 and also some of my function names do not follow the correct verb-noun naming conventions.


########################
function ShowNotify_Icon([string]$msg)
    {
    $objNotifyIcon.BalloonTipIcon = &#039;Info&#039;
    $objNotifyIcon.Icon = &#039;D:\Create_Notify_Icon\graph.ico&#039;
    $objNotifyIcon.BalloonTipTitle = &#039;Processing ...&#039;
    $objNotifyIcon.BalloonTipText = $msg
    $objNotifyIcon.Visible = $True 
    $objNotifyIcon.ShowBalloonTip(9000)
    Sleep(9)
    }#ShowNotify_Icon

########################
function HideNotify_Icon([string]$msg)
    {
	$objNotifyIcon.BalloonTipText = $msg
    $objNotifyIcon.ShowBalloonTip(9000)
    Sleep(9)
    $objNotifyIcon.Visible = $false
    }#HideNotify_Icon

########################
#Start Here   : )
[void][System.Reflection.Assembly]::LoadWithPartialName(&quot;System.Windows.Forms&quot;)
$objNotifyIcon = New-Object System.Windows.Forms.NotifyIcon


ShowNotify_Icon(&#039;This operation is starting . . .&#039;)

HideNotify_Icon(&#039;This operation has completed . . .&#039;)

$objNotifyIcon.Dispose
#main</description>
		<content:encoded><![CDATA[<p>If you are going to create the notify object, its also a good idea to remove it.</p>
<p>I have some code below with an example.</p>
<p>Using  &#8211;&gt;   $objNotifyIcon.Dispose</p>
<p>I wrote this code for PowerShell v1.0 and also some of my function names do not follow the correct verb-noun naming conventions.</p>
<p>########################<br />
function ShowNotify_Icon([string]$msg)<br />
    {<br />
    $objNotifyIcon.BalloonTipIcon = &#8216;Info&#8217;<br />
    $objNotifyIcon.Icon = &#8216;D:\Create_Notify_Icon\graph.ico&#8217;<br />
    $objNotifyIcon.BalloonTipTitle = &#8216;Processing &#8230;&#8217;<br />
    $objNotifyIcon.BalloonTipText = $msg<br />
    $objNotifyIcon.Visible = $True<br />
    $objNotifyIcon.ShowBalloonTip(9000)<br />
    Sleep(9)<br />
    }#ShowNotify_Icon</p>
<p>########################<br />
function HideNotify_Icon([string]$msg)<br />
    {<br />
	$objNotifyIcon.BalloonTipText = $msg<br />
    $objNotifyIcon.ShowBalloonTip(9000)<br />
    Sleep(9)<br />
    $objNotifyIcon.Visible = $false<br />
    }#HideNotify_Icon</p>
<p>########################<br />
#Start Here   : )<br />
[void][System.Reflection.Assembly]::LoadWithPartialName(&#8220;System.Windows.Forms&#8221;)<br />
$objNotifyIcon = New-Object System.Windows.Forms.NotifyIcon</p>
<p>ShowNotify_Icon(&#8216;This operation is starting . . .&#8217;)</p>
<p>HideNotify_Icon(&#8216;This operation has completed . . .&#8217;)</p>
<p>$objNotifyIcon.Dispose<br />
#main</p>
]]></content:encoded>
	</item>
</channel>
</rss>

