<?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[Tastensimulation funktioniert nicht.]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;windows.h&gt;

using namespace std;
int x = 0;

int main()
{
    while(x &lt; 2) {
        x++;
      printf(&quot;%x&quot;, x);
      keybd_event(0x11 , 0, 0L, 0L);
      keybd_event(0x12 , 0, 0L, 0L);
      keybd_event(0x2E , 0, 0L, 0L);

      keybd_event(0x11 , 0, KEYEVENTF_KEYUP, 0L);
      keybd_event(0x12 , 0, KEYEVENTF_KEYUP, 0L);
      keybd_event(0x2E , 0, KEYEVENTF_KEYUP, 0L);
      Sleep(500);
    }

    return 0;
}
</code></pre>
<p>Soll den Taskmanager öffen, funktioniert aber nicht. Weiß wer warum?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/221905/tastensimulation-funktioniert-nicht</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 21:32:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/221905.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 04 Sep 2008 19:16:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Tastensimulation funktioniert nicht. on Thu, 04 Sep 2008 19:16:05 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;windows.h&gt;

using namespace std;
int x = 0;

int main()
{
    while(x &lt; 2) {
        x++;
      printf(&quot;%x&quot;, x);
      keybd_event(0x11 , 0, 0L, 0L);
      keybd_event(0x12 , 0, 0L, 0L);
      keybd_event(0x2E , 0, 0L, 0L);

      keybd_event(0x11 , 0, KEYEVENTF_KEYUP, 0L);
      keybd_event(0x12 , 0, KEYEVENTF_KEYUP, 0L);
      keybd_event(0x2E , 0, KEYEVENTF_KEYUP, 0L);
      Sleep(500);
    }

    return 0;
}
</code></pre>
<p>Soll den Taskmanager öffen, funktioniert aber nicht. Weiß wer warum?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1576730</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576730</guid><dc:creator><![CDATA[daa]]></dc:creator><pubDate>Thu, 04 Sep 2008 19:16:05 GMT</pubDate></item><item><title><![CDATA[Reply to Tastensimulation funktioniert nicht. on Thu, 04 Sep 2008 20:50:34 GMT]]></title><description><![CDATA[<p>das ist einer von meinen nicknames</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;windows.h&gt;

using namespace std;
int x = 0;

int main()
{
    while(x &lt; 2) {
        x++;
      printf(&quot;%x&quot;, x);
      keybd_event(0x11 , 0, 0L, 0L);
      keybd_event(0x10 , 0, 0L, 0L);
      keybd_event(0x1B , 0, 0L, 0L);

      keybd_event(0x11 , 0, KEYEVENTF_KEYUP, 0L);
      keybd_event(0x10 , 0, KEYEVENTF_KEYUP, 0L);
      keybd_event(0x1B , 0, KEYEVENTF_KEYUP, 0L);
      Sleep(500);
    }

    return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1576765</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576765</guid><dc:creator><![CDATA[asdca]]></dc:creator><pubDate>Thu, 04 Sep 2008 20:50:34 GMT</pubDate></item><item><title><![CDATA[Reply to Tastensimulation funktioniert nicht. on Fri, 05 Sep 2008 06:27:07 GMT]]></title><description><![CDATA[<p>Strg+Alt+Entf kann man nicht simmulieren!<br />
Die Gina behandelt diese Tastatureingabe selbst. Sie lässt sich nicht abfangen und in keiner Form simulieren.</p>
<p>Was willst Du machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1576897</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576897</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Fri, 05 Sep 2008 06:27:07 GMT</pubDate></item><item><title><![CDATA[Reply to Tastensimulation funktioniert nicht. on Fri, 05 Sep 2008 08:57:59 GMT]]></title><description><![CDATA[<p>Versuch mal das hier</p>
<pre><code class="language-cpp">SHORT scancode = VkKeyScan( ch );
    BYTE  vk = LOBYTE( scancode );

    bool  shift = ( scancode &amp; 0x100 )!=0,
          ctrl  = ( scancode &amp; 0x200 )!=0,
          alt   = ( scancode &amp; 0x400 )!=0;

    if ( shift ) keybd_event( VK_SHIFT,   0, 0, 0 );
    if ( ctrl )  keybd_event( VK_CONTROL, 0, 0, 0 );
    if ( alt )   keybd_event( VK_MENU,    0, 0, 0 );

    // ***** Simulate ****

    if ( alt )   keybd_event(VK_MENU,    0, KEYEVENTF_KEYUP, 0 );
    if ( ctrl )  keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0 );
    if ( shift ) keybd_event(VK_SHIFT,   0, KEYEVENTF_KEYUP, 0 );
</code></pre>
<p>Gruß Tobi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1576979</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576979</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Fri, 05 Sep 2008 08:57:59 GMT</pubDate></item></channel></rss>