<?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[findwindow, sendmessage problem ?]]></title><description><![CDATA[<p>hallo,</p>
<p>wenn ich nach dem rechner suche, geht.<br />
wenn ich wm_close an rechner schicke geht.</p>
<p>aber wie schicke ich z.b. eine 1 an den rechner, dass da auch 1 angezeigt wird ?</p>
<p>hier mal mein code:</p>
<p>#include &lt;windows.h&gt;<br />
#include &lt;iostream&gt;</p>
<p>using namespace std;</p>
<p>int main(int argc, char argv[]){<br />
cout&lt;&lt;&quot;Suche,&quot;;</p>
<p>HWND Programm = FindWindow(NULL, L&quot;Rechner&quot;);<br />
if(Programm){<br />
cout&lt;&lt;&quot;gefunden&quot;;<br />
SendMessage(Programm,WM_CHAR,VK_NUMPAD1,0);<br />
}<br />
else{<br />
cout&lt;&lt;&quot;nicht gefunden&quot;;<br />
}</p>
<p>//auf taste warten<br />
char myLine[100];<br />
cin.get(myLine,100);</p>
<p>return 0;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/218488/findwindow-sendmessage-problem</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 00:35:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/218488.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 21 Jul 2008 14:07:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to findwindow, sendmessage problem ? on Mon, 21 Jul 2008 14:07:34 GMT]]></title><description><![CDATA[<p>hallo,</p>
<p>wenn ich nach dem rechner suche, geht.<br />
wenn ich wm_close an rechner schicke geht.</p>
<p>aber wie schicke ich z.b. eine 1 an den rechner, dass da auch 1 angezeigt wird ?</p>
<p>hier mal mein code:</p>
<p>#include &lt;windows.h&gt;<br />
#include &lt;iostream&gt;</p>
<p>using namespace std;</p>
<p>int main(int argc, char argv[]){<br />
cout&lt;&lt;&quot;Suche,&quot;;</p>
<p>HWND Programm = FindWindow(NULL, L&quot;Rechner&quot;);<br />
if(Programm){<br />
cout&lt;&lt;&quot;gefunden&quot;;<br />
SendMessage(Programm,WM_CHAR,VK_NUMPAD1,0);<br />
}<br />
else{<br />
cout&lt;&lt;&quot;nicht gefunden&quot;;<br />
}</p>
<p>//auf taste warten<br />
char myLine[100];<br />
cin.get(myLine,100);</p>
<p>return 0;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1550991</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1550991</guid><dc:creator><![CDATA[cyb]]></dc:creator><pubDate>Mon, 21 Jul 2008 14:07:34 GMT</pubDate></item><item><title><![CDATA[Reply to findwindow, sendmessage problem ? on Tue, 22 Jul 2008 03:23:25 GMT]]></title><description><![CDATA[<p>Ich denke, WM_SETTEXT an ein Static/Edit sollte klappen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1551313</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1551313</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Tue, 22 Jul 2008 03:23:25 GMT</pubDate></item><item><title><![CDATA[Reply to findwindow, sendmessage problem ? on Tue, 22 Jul 2008 10:52:42 GMT]]></title><description><![CDATA[<p>Noch zur Ergänzung: Man kann kann mit SendMessage() alles an jeden schicken. Kommt irgendetwas nicht richtig an, dann definiert man für die CALLBACK-Funktion WndProc() ein eigenes ID_MYMESSAGE WM_USER+1 und reagiert dann wie man will. <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="🙂"
    /> <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/1551528</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1551528</guid><dc:creator><![CDATA[berniebutt]]></dc:creator><pubDate>Tue, 22 Jul 2008 10:52:42 GMT</pubDate></item><item><title><![CDATA[Reply to findwindow, sendmessage problem ? on Thu, 04 Sep 2008 14:51:58 GMT]]></title><description><![CDATA[<p>HI<br />
Ich möchte gerne ein Fenster meines IE schließen und hab dazu folgendes geschrieben</p>
<pre><code class="language-cpp">HWND explorer = FindWindow(NULL, L&quot;abc - WindowsInternetExplorer&quot;);
if(explorer){ 
cout&lt;&lt;&quot;gefunden&quot;; 
SendMessage(explorer,WM_CLOSE,VK_NUMPAD1,0); 
} 
else{ 
cout&lt;&lt;&quot;nicht gefunden&quot;; 
}
</code></pre>
<p>aber natürlich bekomm ich jetz die Meldung: nicht gefunden (halt 0)</p>
<p>was mach ich falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1576558</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576558</guid><dc:creator><![CDATA[Jaepen]]></dc:creator><pubDate>Thu, 04 Sep 2008 14:51:58 GMT</pubDate></item><item><title><![CDATA[Reply to findwindow, sendmessage problem ? on Thu, 04 Sep 2008 15:00:41 GMT]]></title><description><![CDATA[<p>also wenn ich das ganze mit einem anderen Prog versuche funktioniert zumindest mal das auslesen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1576570</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576570</guid><dc:creator><![CDATA[Jaepen]]></dc:creator><pubDate>Thu, 04 Sep 2008 15:00:41 GMT</pubDate></item><item><title><![CDATA[Reply to findwindow, sendmessage problem ? on Thu, 04 Sep 2008 15:24:51 GMT]]></title><description><![CDATA[<p>japse spam hier nicht alles mit deinem müll zu man. wenn du den ie schließen willst, hol dir das HWND mit FindWindoof und sende WM_CLOSE mit SendMessage. Wenn du das nicht checkst, dann lern halt erstmal die windoof grundlagen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1576591</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576591</guid><dc:creator><![CDATA[asdca]]></dc:creator><pubDate>Thu, 04 Sep 2008 15:24:51 GMT</pubDate></item><item><title><![CDATA[Reply to findwindow, sendmessage problem ? on Thu, 04 Sep 2008 15:24:53 GMT]]></title><description><![CDATA[<p>Also meine IE-Version ist von der Klasse 'IEFrame' - also:<br />
[cpp]<br />
HWND hwnd = FindWindow(TEXT(&quot;IEFrame&quot;), NULL);<br />
PostMessage(hwnd, WM_CLOSE, 0, 0);</p>
<p>Allerdings schließt Du damit nicht ein Fenster, sondern den ganzen Explorer!</p>
<p>Wenn der von Dir gepostete Code nicht funktioniert, dann scheint der Fenstername bei FindWindow nicht korrekt angegeben zu sein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1576592</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576592</guid><dc:creator><![CDATA[Belli]]></dc:creator><pubDate>Thu, 04 Sep 2008 15:24:53 GMT</pubDate></item><item><title><![CDATA[Reply to findwindow, sendmessage problem ? on Thu, 04 Sep 2008 15:25:11 GMT]]></title><description><![CDATA[<p>Verwende mal statt Send- PostMessage.</p>
<p>Tobi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1576593</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576593</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Thu, 04 Sep 2008 15:25:11 GMT</pubDate></item><item><title><![CDATA[Reply to findwindow, sendmessage problem ? on Thu, 04 Sep 2008 15:28:54 GMT]]></title><description><![CDATA[<p>Noch was dazu: Wenn Du mehrere Instanzen des Explorers geöffnet hast, dann erwischst Du damit natürlich nur eine einzige, welche das dann gerade ist, ist - denke ich - von Dir nicht beeinflussbar.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1576596</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576596</guid><dc:creator><![CDATA[Belli]]></dc:creator><pubDate>Thu, 04 Sep 2008 15:28:54 GMT</pubDate></item><item><title><![CDATA[Reply to findwindow, sendmessage problem ? on Thu, 04 Sep 2008 15:37:01 GMT]]></title><description><![CDATA[<p>erstmal vielen dank bis hier her.<br />
ganz doof bin ich wohl doch nicht, da es jetzt funktioniert:</p>
<pre><code class="language-cpp">HWND explorer = FindWindow(NULL, L&quot;top - Windows Internet Explorer&quot;);
if(explorer){ 
cout&lt;&lt;&quot;gefunden&quot;; 
PostMessage(explorer,WM_CLOSE,0,0); 
} 
else{ 
cout&lt;&lt;&quot;nicht gefunden&quot;; 
}
</code></pre>
<p>Mein Grundproblem ist im Prinzip damit gelöst.<br />
Allerdings würde es mich dann doch noch interessieren wie ich nur das aktuelle Fenster des Explorers schließen kann, und wie ich ein Fenster aktualisieren kann.</p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1576607</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576607</guid><dc:creator><![CDATA[Jaepen]]></dc:creator><pubDate>Thu, 04 Sep 2008 15:37:01 GMT</pubDate></item><item><title><![CDATA[Reply to findwindow, sendmessage problem ? on Thu, 04 Sep 2008 15:39:52 GMT]]></title><description><![CDATA[<p>Jaepen schrieb:</p>
<blockquote>
<p>Allerdings würde es mich dann doch noch interessieren wie ich nur das aktuelle Fenster des Explorers schließen kann, und wie ich ein Fenster aktualisieren kann.<br />
Gruß</p>
</blockquote>
<p>Da ich Dir das in Deinem anderen Thread schon mindestens zweimal gesagt habe ... ist für mich jetzt hier Schluß.<br />
Trotzdem noch viel Spaß beim Tüfteln.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1576610</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576610</guid><dc:creator><![CDATA[Belli]]></dc:creator><pubDate>Thu, 04 Sep 2008 15:39:52 GMT</pubDate></item></channel></rss>