<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[GetAsyncKeyState]]></title><description><![CDATA[<p>Hallo erstmal,</p>
<p>Ich hab ein Problem mit der Funktion GetAsyncKeyState: Wenn ich Zahlen oder Buchstaben abfragen will, bekomme ich immer 0 zurück geliefert.</p>
<p>Mein Code:</p>
<pre><code class="language-cpp">if (GetAsyncKeyState(VK_CONTROL) != 0 &amp;&amp; GetAsyncKeyState(34) != 0) {//CTRL + 4
        cout&lt;&lt;&quot;ausgeloest!&quot;;
    }
</code></pre>
<p>VK_CONTROL funktioniert auch wunderbar, aber die 4 nicht. Den Wert für die Taste 4 hab ich von <a href="http://msdn2.microsoft.com/en-us/library/ms645540.aspx" rel="nofollow">HIER</a>. Das selbe passiert auch bei den anderen Zahlen und Buchstaben, ich kann nur Tasten wie VK_CONTROL, VK_TAB etc. benutzen.</p>
<p>Woran liegt das? Was muss ich benutzen, damit es funktioniert? Jetzt schonmal danke für die Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/188468/getasynckeystate</link><generator>RSS for Node</generator><lastBuildDate>Fri, 03 Jul 2026 13:22:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/188468.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 31 Jul 2007 15:55:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GetAsyncKeyState on Tue, 31 Jul 2007 15:55:38 GMT]]></title><description><![CDATA[<p>Hallo erstmal,</p>
<p>Ich hab ein Problem mit der Funktion GetAsyncKeyState: Wenn ich Zahlen oder Buchstaben abfragen will, bekomme ich immer 0 zurück geliefert.</p>
<p>Mein Code:</p>
<pre><code class="language-cpp">if (GetAsyncKeyState(VK_CONTROL) != 0 &amp;&amp; GetAsyncKeyState(34) != 0) {//CTRL + 4
        cout&lt;&lt;&quot;ausgeloest!&quot;;
    }
</code></pre>
<p>VK_CONTROL funktioniert auch wunderbar, aber die 4 nicht. Den Wert für die Taste 4 hab ich von <a href="http://msdn2.microsoft.com/en-us/library/ms645540.aspx" rel="nofollow">HIER</a>. Das selbe passiert auch bei den anderen Zahlen und Buchstaben, ich kann nur Tasten wie VK_CONTROL, VK_TAB etc. benutzen.</p>
<p>Woran liegt das? Was muss ich benutzen, damit es funktioniert? Jetzt schonmal danke für die Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1335953</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1335953</guid><dc:creator><![CDATA[Alemarius Nexus]]></dc:creator><pubDate>Tue, 31 Jul 2007 15:55:38 GMT</pubDate></item><item><title><![CDATA[Reply to GetAsyncKeyState on Tue, 31 Jul 2007 16:19:04 GMT]]></title><description><![CDATA[<p>msdn schrieb:</p>
<blockquote>
<p>If the most significant bit is set, the key is down, and if the least significant bit is set, the key was pressed after the previous call to GetAsyncKeyState. However, you should not rely on this last behavior; for more information, see the Remarks.</p>
</blockquote>
<p>Sprich: Du musst zusehen das du nur das most significant bit beachtest.</p>
<p>So macht wine das:<br />
<a href="http://www.codase.com/search/call?name=GetAsyncKeyState" rel="nofollow">http://www.codase.com/search/call?name=GetAsyncKeyState</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1335967</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1335967</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Tue, 31 Jul 2007 16:19:04 GMT</pubDate></item><item><title><![CDATA[Reply to GetAsyncKeyState on Tue, 31 Jul 2007 16:29:57 GMT]]></title><description><![CDATA[<p>Klappt wunderbar, danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1335975</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1335975</guid><dc:creator><![CDATA[Alemarius Nexus]]></dc:creator><pubDate>Tue, 31 Jul 2007 16:29:57 GMT</pubDate></item></channel></rss>