<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Global Hotkeys With .NET</title>
	<atom:link href="http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/</link>
	<description>Programming language geek-outs with your host, Max Bolingbroke</description>
	<lastBuildDate>Wed, 22 Apr 2009 11:47:14 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: [C# Framework: 3.5] Menü Animation - Forum Fachinformatiker.de</title>
		<link>http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-741</link>
		<dc:creator>[C# Framework: 3.5] Menü Animation - Forum Fachinformatiker.de</dc:creator>
		<pubDate>Wed, 22 Apr 2009 11:47:14 +0000</pubDate>
		<guid isPermaLink="false">http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-741</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-736</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Mon, 12 Jan 2009 10:06:23 +0000</pubDate>
		<guid isPermaLink="false">http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-736</guid>
		<description>Hi Ryan,

I&#039;m glad you find the code useful! However, I think you are right about using IntPtr.Zero - I must have overlooked that in the RHK documentation.

I don&#039;t have easy access to Visual Studio at the moment, so I&#039;m going to leave the code as it is - I don&#039;t want to upload a buggy version. Unless of course you would like to make the changes and send me the modified version to put up here :-)</description>
		<content:encoded><![CDATA[<p>Hi Ryan,</p>
<p>I&#8217;m glad you find the code useful! However, I think you are right about using IntPtr.Zero &#8211; I must have overlooked that in the RHK documentation.</p>
<p>I don&#8217;t have easy access to Visual Studio at the moment, so I&#8217;m going to leave the code as it is &#8211; I don&#8217;t want to upload a buggy version. Unless of course you would like to make the changes and send me the modified version to put up here <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-735</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Mon, 12 Jan 2009 00:16:32 +0000</pubDate>
		<guid isPermaLink="false">http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-735</guid>
		<description>Thanks!  This code helped me out a lot.  Not only can I use it in my current project, but I can reference it if I ever need to do interop or message filtering in the future.  I was in the same boat as Markus, and I&#039;m extremely happy that I found your code before trying to implement a global hotkey on my own. 

I do have one question, though.  Why didn&#039;t you use IntPtr.Zero instead of the windows pointer when you invoke RegisterHotKey?  Wouldn&#039;t that have avoided the control parameter all together?</description>
		<content:encoded><![CDATA[<p>Thanks!  This code helped me out a lot.  Not only can I use it in my current project, but I can reference it if I ever need to do interop or message filtering in the future.  I was in the same boat as Markus, and I&#8217;m extremely happy that I found your code before trying to implement a global hotkey on my own. </p>
<p>I do have one question, though.  Why didn&#8217;t you use IntPtr.Zero instead of the windows pointer when you invoke RegisterHotKey?  Wouldn&#8217;t that have avoided the control parameter all together?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus The</title>
		<link>http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-732</link>
		<dc:creator>Markus The</dc:creator>
		<pubDate>Fri, 26 Sep 2008 13:04:39 +0000</pubDate>
		<guid isPermaLink="false">http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-732</guid>
		<description>Hi Max,

Thanks for the code. I thought it would be *much* simpler to implement a global hotkey, but I&#039;m glad I found your implementation before I tried.

I built a task bar application around it that makes the current foreground window transparent when you press a hotkey. It&#039;s called See Through Windows and it&#039;s available here:

http://www.mobzystems.com/tools/seethroughwindows.aspx

Couldn&#039;t have done it without you!</description>
		<content:encoded><![CDATA[<p>Hi Max,</p>
<p>Thanks for the code. I thought it would be *much* simpler to implement a global hotkey, but I&#8217;m glad I found your implementation before I tried.</p>
<p>I built a task bar application around it that makes the current foreground window transparent when you press a hotkey. It&#8217;s called See Through Windows and it&#8217;s available here:</p>
<p><a href="http://www.mobzystems.com/tools/seethroughwindows.aspx" rel="nofollow">http://www.mobzystems.com/tools/seethroughwindows.aspx</a></p>
<p>Couldn&#8217;t have done it without you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-731</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Wed, 03 Sep 2008 09:17:38 +0000</pubDate>
		<guid isPermaLink="false">http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-731</guid>
		<description>Sorry about that: I moved my blog to a new hosting provider and forgot to copy that file.

The link should work now.</description>
		<content:encoded><![CDATA[<p>Sorry about that: I moved my blog to a new hosting provider and forgot to copy that file.</p>
<p>The link should work now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yubs</title>
		<link>http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-730</link>
		<dc:creator>Yubs</dc:creator>
		<pubDate>Wed, 03 Sep 2008 04:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-730</guid>
		<description>Hi there, nice article, the link seems to have gone 404 again though. Any chance you can fix &#039;er up?</description>
		<content:encoded><![CDATA[<p>Hi there, nice article, the link seems to have gone 404 again though. Any chance you can fix &#8216;er up?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crash</title>
		<link>http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-727</link>
		<dc:creator>crash</dc:creator>
		<pubDate>Mon, 07 Jul 2008 17:10:20 +0000</pubDate>
		<guid isPermaLink="false">http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-727</guid>
		<description>Ok, I see. Anyway, I&#039;ve just found a way to bypass that problem, so I don&#039;t need that &quot;double hotkeying&quot; any more.
However, thanks for your help.</description>
		<content:encoded><![CDATA[<p>Ok, I see. Anyway, I&#8217;ve just found a way to bypass that problem, so I don&#8217;t need that &#8220;double hotkeying&#8221; any more.<br />
However, thanks for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-726</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Mon, 07 Jul 2008 17:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-726</guid>
		<description>@crash:

I&#039;m glad you are finding the class useful!

According to the documentation for RegisterHotKey (http://msdn.microsoft.com/en-us/library/ms911003.aspx):

&quot;&quot;&quot;
When a key is pressed, the system looks for a match against all hot keys. Upon finding a match, the system posts the WM_HOTKEY message to the message queue of the thread that registered the hot key. This message is posted to the beginning of the queue so it is removed by the next iteration of the message loop.
&quot;&quot;&quot;

So you cannot really have a hot key registered to two applications at the same time, which is what I think you are asking.</description>
		<content:encoded><![CDATA[<p>@crash:</p>
<p>I&#8217;m glad you are finding the class useful!</p>
<p>According to the documentation for RegisterHotKey (<a href="http://msdn.microsoft.com/en-us/library/ms911003.aspx)" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms911003.aspx)</a>:</p>
<p>&#8220;&#8221;"<br />
When a key is pressed, the system looks for a match against all hot keys. Upon finding a match, the system posts the WM_HOTKEY message to the message queue of the thread that registered the hot key. This message is posted to the beginning of the queue so it is removed by the next iteration of the message loop.<br />
&#8220;&#8221;"</p>
<p>So you cannot really have a hot key registered to two applications at the same time, which is what I think you are asking.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crash</title>
		<link>http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-725</link>
		<dc:creator>crash</dc:creator>
		<pubDate>Mon, 07 Jul 2008 13:06:02 +0000</pubDate>
		<guid isPermaLink="false">http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-725</guid>
		<description>Great class so far, but I&#039;ve got a problem:
The hotkeys I use in my program don&#039;t affect anything in the other programs any more. No matter whether I set e.Handled in the method for the Pressed event true or false.

Do you have any suggestions how to fix that?</description>
		<content:encoded><![CDATA[<p>Great class so far, but I&#8217;ve got a problem:<br />
The hotkeys I use in my program don&#8217;t affect anything in the other programs any more. No matter whether I set e.Handled in the method for the Pressed event true or false.</p>
<p>Do you have any suggestions how to fix that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ketan</title>
		<link>http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-724</link>
		<dc:creator>Ketan</dc:creator>
		<pubDate>Mon, 16 Jun 2008 17:12:36 +0000</pubDate>
		<guid isPermaLink="false">http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/#comment-724</guid>
		<description>Ok, I finally got it working. 
I moved:
if (hk.Registered)
{ hk.Unregister(); }

to the form closing event and seemed to do the trick.

This is a great class BTW, I&#039;ve been looking for a clean way of implementing global hotkeys and this is the best implementation I&#039;ve seen.</description>
		<content:encoded><![CDATA[<p>Ok, I finally got it working.<br />
I moved:<br />
if (hk.Registered)<br />
{ hk.Unregister(); }</p>
<p>to the form closing event and seemed to do the trick.</p>
<p>This is a great class BTW, I&#8217;ve been looking for a clean way of implementing global hotkeys and this is the best implementation I&#8217;ve seen.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
