<?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[Ist STRG gedrückt? Via GetAsyncKeyState!!!]]></title><description><![CDATA[<p>Ich lasse so überprüfen ob die STRG taste und ob die &quot;A&quot;-Taste&quot; gedrückt ist.</p>
<pre><code class="language-cpp">if (GetAsyncKeyState (VK_CONTROL))  
{
 fprintf (log,&quot;(STRG)&quot;);
 fclose (log);
}  

 if (GetAsyncKeyState ('A'))  
{
 fprintf (log,&quot;a&quot;);
 fclose (log);
}
</code></pre>
<p>So wenn ich jetzt aber STRG und a gleichzeitig drücke dann ist des &quot;A&quot; ja groß.<br />
aber dann steht leider nur in der Datei nur &quot;(STRG)&quot; und kein großes A.</p>
<p>Wie mache ich des jetzt so das wenn STRG und ne andere Taste z.b B gedrückt ist das dann das B groß ist in der Datei?</p>
<p>Ich hoffe ihr habt mich einigermaßen verstanden.<br />
Und ich hoffe das mir jemand weiterhelfen kann.</p>
<p>Mit freundlicen Grüßen<br />
Sazuke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/188474/ist-strg-gedrückt-via-getasynckeystate</link><generator>RSS for Node</generator><lastBuildDate>Fri, 03 Jul 2026 14:39:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/188474.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 31 Jul 2007 16:53:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ist STRG gedrückt? Via GetAsyncKeyState!!! on Tue, 31 Jul 2007 16:53:51 GMT]]></title><description><![CDATA[<p>Ich lasse so überprüfen ob die STRG taste und ob die &quot;A&quot;-Taste&quot; gedrückt ist.</p>
<pre><code class="language-cpp">if (GetAsyncKeyState (VK_CONTROL))  
{
 fprintf (log,&quot;(STRG)&quot;);
 fclose (log);
}  

 if (GetAsyncKeyState ('A'))  
{
 fprintf (log,&quot;a&quot;);
 fclose (log);
}
</code></pre>
<p>So wenn ich jetzt aber STRG und a gleichzeitig drücke dann ist des &quot;A&quot; ja groß.<br />
aber dann steht leider nur in der Datei nur &quot;(STRG)&quot; und kein großes A.</p>
<p>Wie mache ich des jetzt so das wenn STRG und ne andere Taste z.b B gedrückt ist das dann das B groß ist in der Datei?</p>
<p>Ich hoffe ihr habt mich einigermaßen verstanden.<br />
Und ich hoffe das mir jemand weiterhelfen kann.</p>
<p>Mit freundlicen Grüßen<br />
Sazuke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1335993</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1335993</guid><dc:creator><![CDATA[Sazuke]]></dc:creator><pubDate>Tue, 31 Jul 2007 16:53:51 GMT</pubDate></item><item><title><![CDATA[Reply to Ist STRG gedrückt? Via GetAsyncKeyState!!! on Tue, 31 Jul 2007 17:22:49 GMT]]></title><description><![CDATA[<p>Du kannst in eine geschlossene Datei nichts reinschreiben. Eventuell mal den Ablauf überdenken.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336011</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336011</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 31 Jul 2007 17:22:49 GMT</pubDate></item><item><title><![CDATA[Reply to Ist STRG gedrückt? Via GetAsyncKeyState!!! on Tue, 31 Jul 2007 17:29:32 GMT]]></title><description><![CDATA[<p>Sry hatte nicht alles gepostet,da mein gesamter Code 250 Zeilen hat.<br />
Aber diese Code Zeilen sind in einer schleife.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336014</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336014</guid><dc:creator><![CDATA[xxChillerzz]]></dc:creator><pubDate>Tue, 31 Jul 2007 17:29:32 GMT</pubDate></item><item><title><![CDATA[Reply to Ist STRG gedrückt? Via GetAsyncKeyState!!! on Tue, 31 Jul 2007 18:02:21 GMT]]></title><description><![CDATA[<p>Wenn STRG gedrückt ist, schreibt das Programm etwas in die Datei und schliesst sie dann.<br />
Danach wird geprüft, ob A gedrückt ist.<br />
Falls ja, schreibt das Programm etwas in eine geschlossene Datei.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336029</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336029</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 31 Jul 2007 18:02:21 GMT</pubDate></item><item><title><![CDATA[Reply to Ist STRG gedrückt? Via GetAsyncKeyState!!! on Tue, 31 Jul 2007 18:28:14 GMT]]></title><description><![CDATA[<p>Man kann ja nicht innerhalb 1Milisekunde 2Tasten drücken.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336050</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336050</guid><dc:creator><![CDATA[xxChillerzz]]></dc:creator><pubDate>Tue, 31 Jul 2007 18:28:14 GMT</pubDate></item><item><title><![CDATA[Reply to Ist STRG gedrückt? Via GetAsyncKeyState!!! on Tue, 31 Jul 2007 18:35:00 GMT]]></title><description><![CDATA[<p>Poste mal den Code vom öffnen der Datei bis zum, naja mehr oder weniger schließen der Datei. Weil ansonsten würde ich auch behaupten, dass du die Datei einmal insgesamt öffnest, und du danach immer ur in geschloßenen Dateien schreibst...</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336055</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336055</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Tue, 31 Jul 2007 18:35:00 GMT</pubDate></item><item><title><![CDATA[Reply to Ist STRG gedrückt? Via GetAsyncKeyState!!! on Tue, 31 Jul 2007 18:54:02 GMT]]></title><description><![CDATA[<p>Ihr versteht nicht ganz was ich meine.<br />
Ich will das wenn STRG und a gedrückt sind das dann ein großes A in die Datei geschrieben wird und wenn nur die A Taste gedrückt wird dann soll ein kleines a in die Datei geschrieben werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336070</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336070</guid><dc:creator><![CDATA[xxChillerzz]]></dc:creator><pubDate>Tue, 31 Jul 2007 18:54:02 GMT</pubDate></item><item><title><![CDATA[Reply to Ist STRG gedrückt? Via GetAsyncKeyState!!! on Tue, 31 Jul 2007 21:21:42 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-188468.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-188468.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336148</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336148</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Tue, 31 Jul 2007 21:21:42 GMT</pubDate></item></channel></rss>