<?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[Systemweiten Hotkey definieren?]]></title><description><![CDATA[<p>Könnte jemand ein einfaches Beispielprogramm zeigen, das einen Hotkey erstellt und auf dessen Druck reagiert? Wäre echt nett. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/162125/systemweiten-hotkey-definieren</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 07:46:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/162125.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Oct 2006 02:46:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Systemweiten Hotkey definieren? on Sun, 15 Oct 2006 02:46:31 GMT]]></title><description><![CDATA[<p>Könnte jemand ein einfaches Beispielprogramm zeigen, das einen Hotkey erstellt und auf dessen Druck reagiert? Wäre echt nett. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1154920</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1154920</guid><dc:creator><![CDATA[asdfasf]]></dc:creator><pubDate>Sun, 15 Oct 2006 02:46:31 GMT</pubDate></item><item><title><![CDATA[Reply to Systemweiten Hotkey definieren? on Sun, 15 Oct 2006 05:06:07 GMT]]></title><description><![CDATA[<p>Einer der ganz viele Beispiele kennt ist dieser google.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1154927</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1154927</guid><dc:creator><![CDATA[KennerDerJemands]]></dc:creator><pubDate>Sun, 15 Oct 2006 05:06:07 GMT</pubDate></item><item><title><![CDATA[Reply to Systemweiten Hotkey definieren? on Sun, 15 Oct 2006 07:02:34 GMT]]></title><description><![CDATA[<p><a href="http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/registerhotkey.asp" rel="nofollow">RegisterHotKey</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1154940</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1154940</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 15 Oct 2006 07:02:34 GMT</pubDate></item><item><title><![CDATA[Reply to Systemweiten Hotkey definieren? on Sun, 15 Oct 2006 10:00:09 GMT]]></title><description><![CDATA[<p>Die ganz billige Lösung ist:</p>
<pre><code class="language-cpp">if (GetAsyncKeyState('K')) {blablabla}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1154994</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1154994</guid><dc:creator><![CDATA[MisterX]]></dc:creator><pubDate>Sun, 15 Oct 2006 10:00:09 GMT</pubDate></item><item><title><![CDATA[Reply to Systemweiten Hotkey definieren? on Sun, 15 Oct 2006 15:59:13 GMT]]></title><description><![CDATA[<p>Bei Google habe ich tatsächlich keinen Beispielcode gefunden...</p>
<p>Eure Vorschläge funktionieren jeweils nicht ganz, für die erste Funktion hab ich einfach keine Parameter (HWND??) und die andere kann wohl nur eine Taste überprüfen.</p>
<p>Einige Nachforschungen haben mich noch auf GetKeyboardState() gebracht.<br />
Kann da jemand nen Beispielcode zeigen?</p>
<p>Kenne den Datentyp PBYTE nicht und die MSDN verwirrt mich auch total.</p>
<pre><code class="language-cpp">PBYTE keystates[256];
GetKeyboardState(keystates);
if(keystates[VK_CONTROL] == 1 &amp;&amp; keystates[VK_SNAPSHOT] == 1)
</code></pre>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155202</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155202</guid><dc:creator><![CDATA[adasfas]]></dc:creator><pubDate>Sun, 15 Oct 2006 15:59:13 GMT</pubDate></item><item><title><![CDATA[Reply to Systemweiten Hotkey definieren? on Sun, 15 Oct 2006 16:31:34 GMT]]></title><description><![CDATA[<blockquote>
<p>Handle to the window that will receive WM_HOTKEY messages generated by the hot key. If this parameter is NULL, WM_HOTKEY messages are posted to the message queue of the calling thread and must be processed in the message loop.</p>
</blockquote>
<p>Wenn du also eine fensterlose Anwendung hast, gibst du NULL an und fragst die Nachricht direkt in deiner Message-Loop (oder hast du sowas auch nicht?!) ab...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155215</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155215</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 15 Oct 2006 16:31:34 GMT</pubDate></item><item><title><![CDATA[Reply to Systemweiten Hotkey definieren? on Sun, 15 Oct 2006 16:35:56 GMT]]></title><description><![CDATA[<p>Achso, danke. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Aber wie erhalte ich die Nachricht, wenn ein Hotkey gedrückt wurde? Wie kann ich die Abfragen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155220</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155220</guid><dc:creator><![CDATA[asdfsas]]></dc:creator><pubDate>Sun, 15 Oct 2006 16:35:56 GMT</pubDate></item><item><title><![CDATA[Reply to Systemweiten Hotkey definieren? on Sun, 15 Oct 2006 16:57:39 GMT]]></title><description><![CDATA[<p>asdfsas schrieb:</p>
<blockquote>
<p>Achso, danke. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Aber wie erhalte ich die Nachricht, wenn ein Hotkey gedrückt wurde? Wie kann ich die Abfragen?</p>
</blockquote>
<p>OK, mittlerweile hab ich rausgefunden, dass ich keinen Message-Loop habe.<br />
Wie gesagt, hab von Windows-Apps keine Ahung und bin da erstmal wie an ne Konsolen-App rangegangen...</p>
<p>Geht es nicht doch irgendwie mit GetKeyboardState()?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155231</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155231</guid><dc:creator><![CDATA[asdfas]]></dc:creator><pubDate>Sun, 15 Oct 2006 16:57:39 GMT</pubDate></item><item><title><![CDATA[Reply to Systemweiten Hotkey definieren? on Sun, 15 Oct 2006 20:11:25 GMT]]></title><description><![CDATA[<p>PBYTE ist ein Pointer auf ein BYTE-Array (so steht es ja auch in der MSDN-Library) - also sollte es so irgendwie aussehen:</p>
<pre><code class="language-cpp">BYTE keystates[256];
GetKeyboardState(keystates);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1155286</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155286</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 15 Oct 2006 20:11:25 GMT</pubDate></item></channel></rss>