<?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[brauche hilfe]]></title><description><![CDATA[<p>Hallo,</p>
<p>wieso funktioniert dieser code denn nicht????</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;windows.h&gt;

using namespace std;

int _WindowsWait(char* Fenstername);

int main(void)
{
    HWND hWnd;
    _WindowsWait(&quot;Unbenannt - Editor&quot;); 
    Sleep(100);
    hWnd = FindWindow(0,&quot;Unbenannt - Editor&quot;);
     if(!hWnd)
       cout &lt;&lt; &quot;Error...\n&quot;;
    Sleep(100);
    //SendMessage(hWnd,WM_SETTEXT,0,(LPARAM)&quot;hallo!&quot;);
    SendMessage(hWnd,WM_KEYDOWN,'a',1);
    //SendMessage(hWnd,WM_CHAR,'a',1);
    Sleep(1000);
    SendMessage(hWnd,WM_KEYUP,'a',1);
   return 0;
}

int _WindowsWait(char* Fenstername)
{
    cout &lt;&lt; &quot;Searching...\n&quot;;
    int a = 0;
    HWND hwnd;
    while(a &lt; 1)
    {
    hwnd = FindWindow(0,Fenstername);
    if(!hwnd)
       a = 0;  
    else
    {
       a = 1;
       cout &lt;&lt; &quot;Success...\n&quot;;
    }
    Sleep(10);
    }
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/166041/brauche-hilfe</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 01:49:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/166041.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 25 Nov 2006 15:58:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to brauche hilfe on Sat, 25 Nov 2006 15:58:36 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>wieso funktioniert dieser code denn nicht????</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;windows.h&gt;

using namespace std;

int _WindowsWait(char* Fenstername);

int main(void)
{
    HWND hWnd;
    _WindowsWait(&quot;Unbenannt - Editor&quot;); 
    Sleep(100);
    hWnd = FindWindow(0,&quot;Unbenannt - Editor&quot;);
     if(!hWnd)
       cout &lt;&lt; &quot;Error...\n&quot;;
    Sleep(100);
    //SendMessage(hWnd,WM_SETTEXT,0,(LPARAM)&quot;hallo!&quot;);
    SendMessage(hWnd,WM_KEYDOWN,'a',1);
    //SendMessage(hWnd,WM_CHAR,'a',1);
    Sleep(1000);
    SendMessage(hWnd,WM_KEYUP,'a',1);
   return 0;
}

int _WindowsWait(char* Fenstername)
{
    cout &lt;&lt; &quot;Searching...\n&quot;;
    int a = 0;
    HWND hwnd;
    while(a &lt; 1)
    {
    hwnd = FindWindow(0,Fenstername);
    if(!hwnd)
       a = 0;  
    else
    {
       a = 1;
       cout &lt;&lt; &quot;Success...\n&quot;;
    }
    Sleep(10);
    }
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1181290</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1181290</guid><dc:creator><![CDATA[n0000name]]></dc:creator><pubDate>Sat, 25 Nov 2006 15:58:36 GMT</pubDate></item><item><title><![CDATA[Reply to brauche hilfe on Sat, 25 Nov 2006 16:00:11 GMT]]></title><description><![CDATA[<p>sorry hab genaz vergessen zu sagen was nciht geht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
also er will einfach nicht das a an den editr senden der rest funktioniert alles.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1181291</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1181291</guid><dc:creator><![CDATA[n0000name]]></dc:creator><pubDate>Sat, 25 Nov 2006 16:00:11 GMT</pubDate></item><item><title><![CDATA[Reply to brauche hilfe on Sat, 25 Nov 2006 17:09:54 GMT]]></title><description><![CDATA[<p>Tasten simuliert mal mit &quot;SendInput&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1181354</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1181354</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sat, 25 Nov 2006 17:09:54 GMT</pubDate></item><item><title><![CDATA[Reply to brauche hilfe on Wed, 29 Nov 2006 20:05:33 GMT]]></title><description><![CDATA[<p>Aber bei SendInput() wird das doch nicht im hintergrund gesendet oder? Ich habe das Problem jetzt zwar mit Postmessage gelöst aber ich verstehe immernoch nicht wie man mit postmessage mausclicks versendet</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1184071</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1184071</guid><dc:creator><![CDATA[n000name]]></dc:creator><pubDate>Wed, 29 Nov 2006 20:05:33 GMT</pubDate></item><item><title><![CDATA[Reply to brauche hilfe on Wed, 29 Nov 2006 22:05:07 GMT]]></title><description><![CDATA[<p>Die Koordinaten sind aber 'relative to the upper-left corner of the client area.' <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="😉"
    /> (nicht getestet):</p>
<pre><code class="language-cpp">PostMessage(hWnd, WM_LBUTTONDOWN, 0, MAKELPARAM(10,10));
</code></pre>
<p>EDIT: Das würde dann einem Linksklick ('down') an der Koordinate K(10|10) .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1184125</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1184125</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Wed, 29 Nov 2006 22:05:07 GMT</pubDate></item></channel></rss>