<?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[Mit Tastenkombination bestimmte Befehle ausführen]]></title><description><![CDATA[<p>Hallo liebe C++-Freunde,</p>
<p>ich bin Anfänger im Bereich C++ und daher würde ich gerne wissen, wie man z. B. bei der Eingabe der Kombination 11111 ein neues Fenster mit C++ öffnet.</p>
<p>Danke schonmal im Voraus<br />
Hunterson</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/216570/mit-tastenkombination-bestimmte-befehle-ausführen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 11 Oct 2026 06:11:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/216570.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Jun 2008 14:01:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mit Tastenkombination bestimmte Befehle ausführen on Wed, 25 Jun 2008 14:01:54 GMT]]></title><description><![CDATA[<p>Hallo liebe C++-Freunde,</p>
<p>ich bin Anfänger im Bereich C++ und daher würde ich gerne wissen, wie man z. B. bei der Eingabe der Kombination 11111 ein neues Fenster mit C++ öffnet.</p>
<p>Danke schonmal im Voraus<br />
Hunterson</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1535612</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1535612</guid><dc:creator><![CDATA[Hunterson]]></dc:creator><pubDate>Wed, 25 Jun 2008 14:01:54 GMT</pubDate></item><item><title><![CDATA[Reply to Mit Tastenkombination bestimmte Befehle ausführen on Wed, 25 Jun 2008 14:09:48 GMT]]></title><description><![CDATA[<p>Ich denke mal es geht darum, dass Dein Prozess im Hintergrund läuft, und wenn der User die Tastenkombi irgendwann im Windows drückt, das Fenster erscheinen soll?</p>
<p>Das kannst Du über sogenannte &quot;Keyhooks&quot; regeln. Wenn Du eine Taste drückst, wird in die Message-Queue von Windows ein Eintrag reingeschrieben. Diese Queue (Warteschlange) arbeitet Windows nach und nach ab und reagiert auf die Messages. Keyhooks erlauben es Dir diese Nachrichten auszuwerten bevor sie die Queue erreichen (Du könntest sie sogar davon abhalten).</p>
<p>Habe das aber leider erst einmal gemacht, daher habe ich spontan keine Codeschnipsel auf Lager <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="=\"
      alt="😕"
    /></p>
<p>EDIT: <a href="http://www.c-plusplus.net/forum/topic,39145.html" rel="nofollow">http://www.c-plusplus.net/forum/topic,39145.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1535623</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1535623</guid><dc:creator><![CDATA[PuerNoctis]]></dc:creator><pubDate>Wed, 25 Jun 2008 14:09:48 GMT</pubDate></item><item><title><![CDATA[Reply to Mit Tastenkombination bestimmte Befehle ausführen on Wed, 25 Jun 2008 14:17:14 GMT]]></title><description><![CDATA[<p>Eigentich meine ich mehr sowas wie ein Passwort. Also wenn ich hier die Win32 Konsolenanwendung vor mir habe, möchte ich die Kombination eingeben. Dann soll sich ein neues Fenster öffnen. Also mehr wie ein Passwort.</p>
<p>mfg<br />
Hunterson</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1535630</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1535630</guid><dc:creator><![CDATA[Hunterson]]></dc:creator><pubDate>Wed, 25 Jun 2008 14:17:14 GMT</pubDate></item><item><title><![CDATA[Reply to Mit Tastenkombination bestimmte Befehle ausführen on Wed, 25 Jun 2008 15:40:44 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">char* eingabe;
cin&gt;&gt;eingabe;
if (strcmp(eingabe, &quot;11111&quot;) == 0)
{
   ... // fenster öffnen
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1535716</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1535716</guid><dc:creator><![CDATA[Quellcode]]></dc:creator><pubDate>Wed, 25 Jun 2008 15:40:44 GMT</pubDate></item><item><title><![CDATA[Reply to Mit Tastenkombination bestimmte Befehle ausführen on Thu, 26 Jun 2008 10:09:49 GMT]]></title><description><![CDATA[<p>Quellcode schrieb:</p>
<blockquote>
<pre><code class="language-cpp">char* eingabe;
cin&gt;&gt;eingabe;
if (strcmp(eingabe, &quot;11111&quot;) == 0)
{
   ... // fenster öffnen
}
</code></pre>
</blockquote>
<p>Kaboom!</p>
<pre><code class="language-cpp">std::string eingabe;
cin &gt;&gt; eingabe;
if (eingabe == &quot;11111&quot;) {

}
</code></pre>
<p>oder von mir aus</p>
<pre><code class="language-cpp">char *eingabe = new char[6];
cin.get(eingabe, 5);
if (strcmp(eingabe, &quot;11111&quot;) == 0) {

}
delete[] eingabe;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1536177</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1536177</guid><dc:creator><![CDATA[DerKuchen]]></dc:creator><pubDate>Thu, 26 Jun 2008 10:09:49 GMT</pubDate></item><item><title><![CDATA[Reply to Mit Tastenkombination bestimmte Befehle ausführen on Thu, 26 Jun 2008 10:42:00 GMT]]></title><description><![CDATA[<p>DerKuchen schrieb:</p>
<blockquote>
<pre><code class="language-cpp">char *eingabe = new char[6];
cin.get(eingabe, 5);
if (strcmp(eingabe, &quot;11111&quot;) == 0) {

}
delete[] eingabe;
</code></pre>
</blockquote>
<p>oder</p>
<pre><code class="language-cpp">char eingabe[6] = { 0 }; // bzw. memset(eingabe, 0, sizeof(eingabe));
cin.get(eingabe, 5);
if(strcmp(eingabe, &quot;11111&quot;) == 0) {
    // ...
}
</code></pre>
<p>für 6 Bytes sollte sein Stack noch Platz haben <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1536195</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1536195</guid><dc:creator><![CDATA[Xantus]]></dc:creator><pubDate>Thu, 26 Jun 2008 10:42:00 GMT</pubDate></item><item><title><![CDATA[Reply to Mit Tastenkombination bestimmte Befehle ausführen on Thu, 26 Jun 2008 11:58:51 GMT]]></title><description><![CDATA[<p>Ja gut... aber die std::string Methode ist schöner (-;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1536296</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1536296</guid><dc:creator><![CDATA[DerKuchen]]></dc:creator><pubDate>Thu, 26 Jun 2008 11:58:51 GMT</pubDate></item></channel></rss>