<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>What the %$#!* is wrong with VkKeyScan[Ex]?</title><link>http://blogs.msdn.com/b/michkap/archive/2006/03/26/560595.aspx</link><description>The VkKeyScanW and VkKeyScanExW functions have a simple, documented functionality: 
 
 ...translates a character to the corresponding virtual-key code and shift state... 
 Not the sort of thing you would need all the time, but it can come in handy</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>Need to know the VK for A, ay?</title><link>http://blogs.msdn.com/b/michkap/archive/2006/03/26/560595.aspx#8921785</link><pubDate>Wed, 03 Sep 2008 13:24:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8921785</guid><dc:creator>Sorting it all Out</dc:creator><description>&lt;p&gt;So the question that Tom asked was: Hi Michael, your blog is really amazing. I have a question: I only&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8921785" width="1" height="1"&gt;</description></item><item><title>re: What the %$#!* is wrong with VkKeyScan[Ex]?</title><link>http://blogs.msdn.com/b/michkap/archive/2006/03/26/560595.aspx#8408855</link><pubDate>Fri, 18 Apr 2008 22:28:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8408855</guid><dc:creator>Todd</dc:creator><description>&lt;p&gt;My apologies. &amp;nbsp;I was calling VkKeyScanW from C#. &amp;nbsp;I was under the assumption that C# characters were unicode. &amp;nbsp;I thought I needed to call the wide version. &amp;nbsp;If I cast the C# characters to shorts then it works every time. &amp;nbsp;If I just call VkKeyScan (without specifying wide), it works as well (without casting to shorts).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8408855" width="1" height="1"&gt;</description></item><item><title>re: What the %$#!* is wrong with VkKeyScan[Ex]?</title><link>http://blogs.msdn.com/b/michkap/archive/2006/03/26/560595.aspx#8408760</link><pubDate>Fri, 18 Apr 2008 21:55:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8408760</guid><dc:creator>Michael S. Kaplan</dc:creator><description>&lt;p&gt;I'd want to know the code, the keyboard, and the string that repros that....&lt;/p&gt;
&lt;p&gt;Though note the follow-up comments poiinting to other VkKeyScan[Ex] problems.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8408760" width="1" height="1"&gt;</description></item><item><title>re: What the %$#!* is wrong with VkKeyScan[Ex]?</title><link>http://blogs.msdn.com/b/michkap/archive/2006/03/26/560595.aspx#8408598</link><pubDate>Fri, 18 Apr 2008 21:00:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8408598</guid><dc:creator>Todd</dc:creator><description>&lt;p&gt;It seems that VkKeyScan might suck more than you've actually let on. &amp;nbsp;For some reason, in my application, I try to run a string through VkKeyScan one character at a time and collect the VkKeys. &amp;nbsp;However, the function returns the correct value only on the first character. &amp;nbsp;After that, it continuously returns -1.&lt;/p&gt;
&lt;p&gt;What's up with that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8408598" width="1" height="1"&gt;</description></item><item><title>Further proof that VkKeyScanEx sucks</title><link>http://blogs.msdn.com/b/michkap/archive/2006/03/26/560595.aspx#748744</link><pubDate>Sun, 10 Sep 2006 20:01:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:748744</guid><dc:creator>Sorting It All Out</dc:creator><description>&lt;br&gt;The question that made its way to me through a bunch of others went something like this (product names...&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=748744" width="1" height="1"&gt;</description></item><item><title>Getting all you can out of a keyboard layout, Part #9a</title><link>http://blogs.msdn.com/b/michkap/archive/2006/03/26/560595.aspx#575092</link><pubDate>Wed, 12 Apr 2006 20:22:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:575092</guid><dc:creator>Sorting It All Out</dc:creator><description>(Previous posts in this series: Parts 0, 1, 2, 3, 4, 5, 6, 7, and 8)&lt;br&gt;Today, we're going to take a look...&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=575092" width="1" height="1"&gt;</description></item><item><title>Getting all you can out of a keyboard layout, Part #4</title><link>http://blogs.msdn.com/b/michkap/archive/2006/03/26/560595.aspx#561737</link><pubDate>Mon, 27 Mar 2006 10:45:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:561737</guid><dc:creator>Sorting It All Out</dc:creator><description>Previous posts in this series: Parts 0, 1, 2, and 3.&lt;br&gt;We're going to do a bit of preparatory adjustment...&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=561737" width="1" height="1"&gt;</description></item><item><title>re: What the %$#!* is wrong with VkKeyScan[Ex]?</title><link>http://blogs.msdn.com/b/michkap/archive/2006/03/26/560595.aspx#561380</link><pubDate>Sun, 26 Mar 2006 21:01:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:561380</guid><dc:creator>Michael S. Kaplan</dc:creator><description>Notice how I did not even get into the issue of the awful name of this function -- I'll be talking about that soon, though. :-)&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=561380" width="1" height="1"&gt;</description></item></channel></rss>