<?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[Tasten simulieren]]></title><description><![CDATA[<p>Hallo leute habe mal eine keline frage wie kann ich dem pc simulieren das ich zb strg-alt-entf gedrückt habe ? kann mann sowas ihn c++ programmieren ?</p>
<p>wenn ja habt ihr einen link zu einem tutorial oder infos oder könnt ihr ein beispiel machen währe echt net wenn ihr mir helfen könntet !</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/121167/tasten-simulieren</link><generator>RSS for Node</generator><lastBuildDate>Sat, 22 Aug 2026 16:03:38 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/121167.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Sep 2005 21:45:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Tasten simulieren on Tue, 20 Sep 2005 21:45:31 GMT]]></title><description><![CDATA[<p>Hallo leute habe mal eine keline frage wie kann ich dem pc simulieren das ich zb strg-alt-entf gedrückt habe ? kann mann sowas ihn c++ programmieren ?</p>
<p>wenn ja habt ihr einen link zu einem tutorial oder infos oder könnt ihr ein beispiel machen währe echt net wenn ihr mir helfen könntet !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/876685</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/876685</guid><dc:creator><![CDATA[Thomasder]]></dc:creator><pubDate>Tue, 20 Sep 2005 21:45:31 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Wed, 21 Sep 2005 05:11:45 GMT]]></title><description><![CDATA[<p>du könntest die ASCII-Codes für STRG ALT und ENTF in char-Variablen, oder int-Variablen schreiben und dann dem Programm damit sagen, was es machen soll</p>
]]></description><link>https://www.c-plusplus.net/forum/post/876729</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/876729</guid><dc:creator><![CDATA[Vorden]]></dc:creator><pubDate>Wed, 21 Sep 2005 05:11:45 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Wed, 21 Sep 2005 05:16:09 GMT]]></title><description><![CDATA[<p>Vorden schrieb:</p>
<blockquote>
<p>du könntest die ASCII-Codes für STRG ALT und ENTF in char-Variablen, oder int-Variablen schreiben und dann dem Programm damit sagen, was es machen soll</p>
</blockquote>
<p>Es gibt keine ASCII-Codes für Strg oder Alt. ASCII-Codes repräsentieren Zeichen, keine Tasten. Vielleich solltest du dich generell vorher etwas besser informieren. Vieles, was du so von dir gibst, ist falsch <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>Thomasder, mit Standard-C++ kannst du sowieso keine Tastendrücke simulieren, das geht nur mit betriebssystemspezifischen Funktionen. Unter Windows ist gerade diese Tastenkombination besonders geschützt, damit die Anmeldung nicht durch ein Programm erfolgen kann. Wofür brauchst du das?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/876731</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/876731</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Wed, 21 Sep 2005 05:16:09 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Wed, 21 Sep 2005 16:09:52 GMT]]></title><description><![CDATA[<p>Danke erstmal für eure antworten <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>Ich will ein text automatisch schreiben lassen er ist 20 zeilen lang er soll nämlich buchstabe nach buchstabe geschrieben werden das will ich machen und ich kenne keine andere möglich keit als jeden buchstaben mit einer verzögerung von so 100ms das es nicht einfach denn text ausgibt sondern richtig buchstabe nach buchstabe ´schreibt <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/877266</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877266</guid><dc:creator><![CDATA[thomasder]]></dc:creator><pubDate>Wed, 21 Sep 2005 16:09:52 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Wed, 21 Sep 2005 19:20:17 GMT]]></title><description><![CDATA[<p>Ein wenig OT:</p>
<p>Naja,<br />
deine Aufgabe kann man doch auch einfacher lösen, oder? ^^</p>
<p>Mir schiesst jetzt sowas durch den Kopf:</p>
<pre><code class="language-cpp">string deintext = &quot;blablabla&quot;;
unsigned int i = 0;
for (i = 0; i &lt; deintext.length(); i++)
{
    cout &lt;&lt; deintext[i];
    Sleep(100);
}
</code></pre>
<p>Oder hab ich was an deiner Vorstellung falsch verstanden?</p>
<p>MfG</p>
<p>Vic</p>
]]></description><link>https://www.c-plusplus.net/forum/post/877366</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877366</guid><dc:creator><![CDATA[_Vic_]]></dc:creator><pubDate>Wed, 21 Sep 2005 19:20:17 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Wed, 21 Sep 2005 21:27:27 GMT]]></title><description><![CDATA[<p>string deintext = &quot;blablabla&quot;;<br />
unsigned int i = 0;<br />
for (i = 0; i &lt; deintext.length(); i++)<br />
{<br />
cout &lt;&lt; deintext[i];<br />
Sleep(100);<br />
}</p>
<p>??? geht nicht ???</p>
<p>kannst du mir das bitte funktionierend geben ?<br />
währe echt net</p>
]]></description><link>https://www.c-plusplus.net/forum/post/877437</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877437</guid><dc:creator><![CDATA[thomasder]]></dc:creator><pubDate>Wed, 21 Sep 2005 21:27:27 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Wed, 21 Sep 2005 21:31:34 GMT]]></title><description><![CDATA[<p>thomasder schrieb:</p>
<blockquote>
<p>??? geht nicht ???</p>
</blockquote>
<p>mein windows geht grad auch nich.... kannst du mir sagen warum?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/877438</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877438</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Wed, 21 Sep 2005 21:31:34 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Wed, 21 Sep 2005 21:35:35 GMT]]></title><description><![CDATA[<p>?? ne aber sag mal ein paar sachen waas nicht geht dann kann mann dir helfen</p>
<p>und ich kenne mich net gut mit c++ aus deswegen weiss ich net woran das liegt also wenn ich kompliemiere kommt immer (benutze dev cpp) immer ihn der 1 zeile bei string rotes X</p>
]]></description><link>https://www.c-plusplus.net/forum/post/877442</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877442</guid><dc:creator><![CDATA[thomasder]]></dc:creator><pubDate>Wed, 21 Sep 2005 21:35:35 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Wed, 21 Sep 2005 21:38:54 GMT]]></title><description><![CDATA[<p>thomasder schrieb:</p>
<blockquote>
<p>?? ne aber sag mal ein paar sachen waas nicht geht dann kann mann dir helfen</p>
</blockquote>
<p>genau das wollte ich damit sagen <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>
<p>poste die fehlermeldungen die der compiler ausspuckt, dann wird dir geholfen <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="🙂"
    /><br />
meine kristallkugel is halt grad in der werkstatt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/877443</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877443</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Wed, 21 Sep 2005 21:38:54 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Wed, 21 Sep 2005 21:41:58 GMT]]></title><description><![CDATA[<p>3 G:\Dokumente und Einstellungen\Thomas\Eigene Dateien\hallo welt\gtgg.cpp expected <code>,' or</code>;' before '++' token<br />
3 G:\Dokumente und Einstellungen\Thomas\Eigene Dateien\hallo welt\gtgg.cpp expected constructor, destructor, or type conversion before '++' token<br />
3 G:\Dokumente und Einstellungen\Thomas\Eigene Dateien\hallo welt\gtgg.cpp expected <code>,' or</code>;' before '&lt;' token<br />
3 G:\Dokumente und Einstellungen\Thomas\Eigene Dateien\hallo welt\gtgg.cpp expected constructor, destructor, or type conversion before '&lt;' token<br />
3 G:\Dokumente und Einstellungen\Thomas\Eigene Dateien\hallo welt\gtgg.cpp expected <code>,' or</code>;' before &quot;for&quot;<br />
3 G:\Dokumente und Einstellungen\Thomas\Eigene Dateien\hallo welt\gtgg.cpp expected unqualified-id before &quot;for&quot;<br />
1 G:\Dokumente und Einstellungen\Thomas\Eigene Dateien\hallo welt\gtgg.cpp `string' does not name a type <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/877446</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877446</guid><dc:creator><![CDATA[thomasder]]></dc:creator><pubDate>Wed, 21 Sep 2005 21:41:58 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Wed, 21 Sep 2005 21:45:36 GMT]]></title><description><![CDATA[<p>hier mal der komplette code</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt; // für Sleep
#include &lt;string&gt; // für string
#include &lt;iostream&gt; // für cout
using namespace std; // damit du string statt std::string und cout statt std::cout schreiben kannst

int main()
{
  string deintext = &quot;blablabla&quot;;
  unsigned int i = 0;
  for (i = 0; i &lt; deintext.length(); i++)
  {
    cout &lt;&lt; deintext[i];
    Sleep(100);
  }

  return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/877447</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877447</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Wed, 21 Sep 2005 21:45:36 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Wed, 21 Sep 2005 21:45:50 GMT]]></title><description><![CDATA[<p>G:\Dokumente und Einstellungen\Thomas\Eigene Dateien\hallo welt\gtgg.cpp In function `int main()':</p>
<p>11 G:\Dokumente und Einstellungen\Thomas\Eigene Dateien\hallo welt\gtgg.cpp `cout' undeclared (first use this function)<br />
(Each undeclared identifier is reported only once for each function it appears in.)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/877448</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877448</guid><dc:creator><![CDATA[thomasder]]></dc:creator><pubDate>Wed, 21 Sep 2005 21:45:50 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Wed, 21 Sep 2005 21:46:58 GMT]]></title><description><![CDATA[<p>ja hab ich beim ersten mal vergessen... habs geändert</p>
]]></description><link>https://www.c-plusplus.net/forum/post/877450</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877450</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Wed, 21 Sep 2005 21:46:58 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Wed, 21 Sep 2005 21:48:16 GMT]]></title><description><![CDATA[<p>Danke so geht es doch ! kann ich das auch ihn einem fenster machen (windows style) oder ist das zu zeit aufwendig</p>
]]></description><link>https://www.c-plusplus.net/forum/post/877451</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877451</guid><dc:creator><![CDATA[thomasder]]></dc:creator><pubDate>Wed, 21 Sep 2005 21:48:16 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Wed, 21 Sep 2005 21:51:00 GMT]]></title><description><![CDATA[<p>dafür kannst du noch zu wenig c++</p>
<p>an mfc oder winapi würdest dir wahrscheinlich die zähne ausbeißen<br />
du könntest es mal mit <a href="http://www.clanlib.org/" rel="nofollow">http://www.clanlib.org/</a> versuchen... is relativ einfach aufgebaut und nimmt dir die meiste programmierarbeit ab<br />
ließ auf jeden fall n paar tutorials durch</p>
]]></description><link>https://www.c-plusplus.net/forum/post/877452</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877452</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Wed, 21 Sep 2005 21:51:00 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Wed, 21 Sep 2005 22:03:44 GMT]]></title><description><![CDATA[<p>Ok mache ich mal danke für die fette hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/877455</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877455</guid><dc:creator><![CDATA[thomasder]]></dc:creator><pubDate>Wed, 21 Sep 2005 22:03:44 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Wed, 21 Sep 2005 22:04:46 GMT]]></title><description><![CDATA[<p>np immer wieder gern <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/877456</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877456</guid><dc:creator><![CDATA[Sovok]]></dc:creator><pubDate>Wed, 21 Sep 2005 22:04:46 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Wed, 21 Sep 2005 22:28:13 GMT]]></title><description><![CDATA[<p>Wenn Du die Funktionen der stdio.h benutzt, statt Streams, reduziert sich das Problem auf einen simplen Pointerwechsel - etwa so</p>
<pre><code class="language-cpp">void MyClass::InterpreteKeys (FILE   *pSource)
{
    FILE    *pFileIn;
    char     cKey;
    bool     fRunLoop = true

    if (pSource == NULL)
        pFileIn = stdin;
    else
        pFileIn = pSource;

    while (fRunLoop == true)
    {
         cKey = fgetc(pSource);
         if (cKey == EOF)
             fRunLoop = false
         else
             //Interpretiere hier cKey!
    }
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/877464</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877464</guid><dc:creator><![CDATA[MBCS-CITP]]></dc:creator><pubDate>Wed, 21 Sep 2005 22:28:13 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Thu, 22 Sep 2005 05:57:54 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/9866">@MBCS-CITP</a>:</p>
<p>if (cKey == EOF)</p>
<p>Dieser Vergleich kann so niemals wahr sein - und wenn doch, würde das eine Assertion rechtfertigen. cKey muss ein int sein. Außerdem ist das Zeichen in der unsigned-char Repräsentation.</p>
<p>Mal davon abgesehen, dass wir hier im C++ Forum sind <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/877498</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877498</guid><dc:creator><![CDATA[7H3 N4C3R]]></dc:creator><pubDate>Thu, 22 Sep 2005 05:57:54 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Thu, 22 Sep 2005 11:12:30 GMT]]></title><description><![CDATA[<p>hier ist die lösung</p>
<p>#include &lt;iostream&gt;<br />
#include &lt;conio.h&gt;</p>
<p>using namespacen std;</p>
<p>int main()<br />
{<br />
char eingabe;<br />
cout&lt;&lt;&quot;gib was ein du.....&quot;;<br />
wahl=getch();</p>
<p>}</p>
<p>den code habe ich nicht getest ist glaub auch nicht nötig!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/877750</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877750</guid><dc:creator><![CDATA[lol5555555555]]></dc:creator><pubDate>Thu, 22 Sep 2005 11:12:30 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Thu, 22 Sep 2005 11:28:20 GMT]]></title><description><![CDATA[<p>7H3 N4C3R schrieb:</p>
<blockquote>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/9866">@MBCS-CITP</a>:</p>
<p>if (cKey == EOF)</p>
<p>Dieser Vergleich kann so niemals wahr sein - und wenn doch, würde das eine Assertion rechtfertigen. cKey muss ein int sein. Außerdem ist das Zeichen in der unsigned-char Repräsentation.</p>
</blockquote>
<p>fgetc(), getc() and getchar() return the character read as an unsigned char cast to an int or EOF on end of file or error.</p>
<p>7H3 N4C3R schrieb:</p>
<blockquote>
<p>Mal davon abgesehen, dass wir hier im C++ Forum sind <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>
</blockquote>
<p>Man soll dann die stdio.h-Funktione nutzen, wenn einfacher zu handaben sind. Es kommt immer darauf an und ich habe nie ein Problem darin gesehen, die stdio.h und die std:: nach Zweck und Anwendung zu mischen. Wobei ich meistens die stdio.h einfach eleganter und einfacher halte (Geschmackssache).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/877759</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877759</guid><dc:creator><![CDATA[MBCS-CITP]]></dc:creator><pubDate>Thu, 22 Sep 2005 11:28:20 GMT</pubDate></item><item><title><![CDATA[Reply to Tasten simulieren on Thu, 22 Sep 2005 11:57:22 GMT]]></title><description><![CDATA[<p>MBCS-CITP schrieb:</p>
<blockquote>
<p>fgetc(), getc() and getchar() return the character read as an unsigned char cast to an int or EOF on end of file or error.</p>
</blockquote>
<p>Sag ich doch. Und das ist auch der Fehler in deinem Beispiel. Wenn Du schon in die Manpage gucken kannst, wirst Du auch festgestellt haben, dass der Rückgabewert int - und nicht char - ist. EOF ist nicht in (unsigned) char darstellbar und ist typischerweise -1. Der Datentyp von cKey, also char, ist schlichtweg falsch und die Bedingung kann (darf!) so nie wahr sein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/877790</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/877790</guid><dc:creator><![CDATA[7H3 N4C3R]]></dc:creator><pubDate>Thu, 22 Sep 2005 11:57:22 GMT</pubDate></item></channel></rss>