<?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[Virtuelle Tastencodes kombinieren]]></title><description><![CDATA[<p>Guten Abend!</p>
<p>Eine schnelle Frage noch heute abend:</p>
<p>In einem OnKeyDown Ereignis kann ich eine Taste abfangen, zB</p>
<pre><code class="language-cpp">if (Key == VK_RETURN)
{
  [...]
}
</code></pre>
<p>Aber ich möchte STRG <strong>+</strong> RETURN oder ALT <strong>+</strong> RETURn abfangen.</p>
<p>habe if (Key == VK_CONTROL + VK_RETURN) und so einen Kram versucht, aber da kommt nix rum bei...<br />
Ich denke mal die Frage kam schon mal irgendwo, habe aber über die Suche nix gefunden, also hoffe ich mal jemand kann mir weiterhelfen.</p>
<p>Danke schonmal,<br />
Tippo</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/184858/virtuelle-tastencodes-kombinieren</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 06:41:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/184858.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Jun 2007 19:53:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Virtuelle Tastencodes kombinieren on Tue, 19 Jun 2007 19:53:45 GMT]]></title><description><![CDATA[<p>Guten Abend!</p>
<p>Eine schnelle Frage noch heute abend:</p>
<p>In einem OnKeyDown Ereignis kann ich eine Taste abfangen, zB</p>
<pre><code class="language-cpp">if (Key == VK_RETURN)
{
  [...]
}
</code></pre>
<p>Aber ich möchte STRG <strong>+</strong> RETURN oder ALT <strong>+</strong> RETURn abfangen.</p>
<p>habe if (Key == VK_CONTROL + VK_RETURN) und so einen Kram versucht, aber da kommt nix rum bei...<br />
Ich denke mal die Frage kam schon mal irgendwo, habe aber über die Suche nix gefunden, also hoffe ich mal jemand kann mir weiterhelfen.</p>
<p>Danke schonmal,<br />
Tippo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1309405</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1309405</guid><dc:creator><![CDATA[Tippokrates]]></dc:creator><pubDate>Tue, 19 Jun 2007 19:53:45 GMT</pubDate></item><item><title><![CDATA[Reply to Virtuelle Tastencodes kombinieren on Tue, 19 Jun 2007 20:47:28 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Bei den OnKey-Events wird immer der Parameter vom Typ TShiftState übergeben, den du abfragen kannst ob Alt, Shift oder Ctrl gedrückt wurden.<br />
Für Kombinationen mit anderen Tasten must du entweder die WinAPI-Funktion GetASynchKeyState verwenden oder dir die jeweils letzten Tasten zwischenspeichern.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1309431</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1309431</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 19 Jun 2007 20:47:28 GMT</pubDate></item><item><title><![CDATA[Reply to Virtuelle Tastencodes kombinieren on Wed, 20 Jun 2007 06:54:54 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>siehe auch hier: <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-183739.html" rel="nofollow">Tastenkombination CTRL + ^ auswerten</a></p>
<p>Die Suche zu <strong>*Tastenkombination*</strong> im VCL/CLX spuckt auch ne ganze Menge aus. Ist da nix dabei?</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1309593</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1309593</guid><dc:creator><![CDATA[Kolumbus]]></dc:creator><pubDate>Wed, 20 Jun 2007 06:54:54 GMT</pubDate></item><item><title><![CDATA[Reply to Virtuelle Tastencodes kombinieren on Wed, 20 Jun 2007 15:33:37 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void __fastcall TChatForm::RichEdit1KeyDown(TObject *Sender, WORD &amp;Key,
      TShiftState Shift)
{
  if ( (Key == VK_RETURN) &amp;&amp; (Shift.Contains(ssCtrl)) )
  {
    Key = 0;
  }
}
</code></pre>
<p>Ach verdammt, ich habe zwar die ganze Zeit TShiftState abgefragt, aber a) nicht bedacht das es vom Typ Set ist und b) nach VK_CONTROL und nicht nach ssCtrl gesucht. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>thx for support,<br />
Tippo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1310030</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1310030</guid><dc:creator><![CDATA[Tippokrates]]></dc:creator><pubDate>Wed, 20 Jun 2007 15:33:37 GMT</pubDate></item></channel></rss>