<?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[SetWindowText bei einer anderen Anwendung]]></title><description><![CDATA[<p>Hi, ich möchte Winamp über ein Programm steuern, und dazu müsste ich auch einen Track suchen können. Wie kann ich denn einen Text von meiner Anwendung aus in das Suchfeld von Winamp schreiben? SetWindowText funktioniert nicht.<br />
Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/204150/setwindowtext-bei-einer-anderen-anwendung</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 20:47:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/204150.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Jan 2008 17:16:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SetWindowText bei einer anderen Anwendung on Wed, 30 Jan 2008 17:16:27 GMT]]></title><description><![CDATA[<p>Hi, ich möchte Winamp über ein Programm steuern, und dazu müsste ich auch einen Track suchen können. Wie kann ich denn einen Text von meiner Anwendung aus in das Suchfeld von Winamp schreiben? SetWindowText funktioniert nicht.<br />
Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1446512</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446512</guid><dc:creator><![CDATA[Seeeman]]></dc:creator><pubDate>Wed, 30 Jan 2008 17:16:27 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowText bei einer anderen Anwendung on Wed, 30 Jan 2008 18:54:00 GMT]]></title><description><![CDATA[<p>Hättest du in der MSDN nachgelesen hättest du folgendes gefunden:</p>
<blockquote>
<p>SetWindowText cannot change the text of a control in another application</p>
</blockquote>
<p>Dafür nimmst du ein SendMessage mit WM_SETTEXT. Das ist übrigens mit GetWindowText das selbe.</p>
<p>schirrmie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1446574</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446574</guid><dc:creator><![CDATA[schirrmie]]></dc:creator><pubDate>Wed, 30 Jan 2008 18:54:00 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowText bei einer anderen Anwendung on Wed, 30 Jan 2008 21:04:13 GMT]]></title><description><![CDATA[<p>Thx, nur leider mag das meine Firewall und mein Antivirenprogramm nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1446659</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446659</guid><dc:creator><![CDATA[Seeeman]]></dc:creator><pubDate>Wed, 30 Jan 2008 21:04:13 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowText bei einer anderen Anwendung on Wed, 30 Jan 2008 21:08:04 GMT]]></title><description><![CDATA[<p>Seeeman schrieb:</p>
<blockquote>
<p>Thx, nur leider mag das meine Firewall und mein Antivirenprogramm nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> .</p>
</blockquote>
<p>Dann zeig mal COde wie Du das machst. WM_SETTEXT ist universal und unabhängig von der einer Firewall!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1446662</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446662</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 30 Jan 2008 21:08:04 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowText bei einer anderen Anwendung on Wed, 30 Jan 2008 21:44:21 GMT]]></title><description><![CDATA[<p>Im Prinzip so:</p>
<pre><code class="language-cpp">g_hWinampSuche = FindWindowA(&quot;#32770&quot;,0);
</code></pre>
<p>...</p>
<pre><code class="language-cpp">HWND edit =  GetDlgItem(g_hWinampSuche,WINAMP_EDIT_SEARCH);
			SendMessage(edit ,WM_SETTEXT,0,(LPARAM)Packet-&gt;code);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1446686</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446686</guid><dc:creator><![CDATA[Seeeman]]></dc:creator><pubDate>Wed, 30 Jan 2008 21:44:21 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowText bei einer anderen Anwendung on Thu, 31 Jan 2008 06:59:13 GMT]]></title><description><![CDATA[<p>Und was ist Packet-&gt;code?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1446761</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446761</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 31 Jan 2008 06:59:13 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowText bei einer anderen Anwendung on Thu, 31 Jan 2008 12:17:03 GMT]]></title><description><![CDATA[<p>ein 128 Zeichen großes char Array</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1446907</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446907</guid><dc:creator><![CDATA[Seeeman]]></dc:creator><pubDate>Thu, 31 Jan 2008 12:17:03 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowText bei einer anderen Anwendung on Thu, 31 Jan 2008 13:39:10 GMT]]></title><description><![CDATA[<p>TCHAR, char, wchar_t? Ist Dein Programm Unicode oder MBCS?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1446976</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446976</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 31 Jan 2008 13:39:10 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowText bei einer anderen Anwendung on Thu, 31 Jan 2008 14:44:33 GMT]]></title><description><![CDATA[<p>char.<br />
Daran liegts aber sicher nicht, denn wie gesagt, das ganze funktioniert einwandfrei, wenn ich Firewall (Sygate) und Antivir (Nod32) deaktiviere.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1447042</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1447042</guid><dc:creator><![CDATA[Seeeman]]></dc:creator><pubDate>Thu, 31 Jan 2008 14:44:33 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowText bei einer anderen Anwendung on Thu, 31 Jan 2008 14:59:23 GMT]]></title><description><![CDATA[<p>Der Mann hat eine sehr gute Firewall <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="😃"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
<p>Nein, im Ernst,...hast du ansonsten noch Routinen im Programm,<br />
die ggf. ein &quot;pause&quot; deiner Anwendung durch eine Firewall verursachen<br />
könnten? Z.B. HTTP-Calls, FTP-Verbindungen usw? Evtl. kommt dein<br />
Programm ja nicht einmal bis zur Stelle an der du SendMessage verwendest?!</p>
<p>Mal mit debuggen versucht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1447064</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1447064</guid><dc:creator><![CDATA[Shell32]]></dc:creator><pubDate>Thu, 31 Jan 2008 14:59:23 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowText bei einer anderen Anwendung on Thu, 31 Jan 2008 15:20:01 GMT]]></title><description><![CDATA[<p>Doch, das Programm kommt schon soweit ...<br />
Und ... Habs jetzt beobachtet: Es ist nicht WM_SETTEXT, sondern wenn FW und AV an sind, bekomm ich kein Handle auf das Edit Control... liegt also an GetDlgItem ?<br />
Komisch. Gibts noch ne andere möglichkeit, an das Handle des Edits zu kommen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1447085</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1447085</guid><dc:creator><![CDATA[Seeeman]]></dc:creator><pubDate>Thu, 31 Jan 2008 15:20:01 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowText bei einer anderen Anwendung on Fri, 01 Feb 2008 19:15:12 GMT]]></title><description><![CDATA[<p>Hat dazu vielleicht noch jemand eine Idee ? Vielen Dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1447760</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1447760</guid><dc:creator><![CDATA[Seeeman]]></dc:creator><pubDate>Fri, 01 Feb 2008 19:15:12 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowText bei einer anderen Anwendung on Fri, 01 Feb 2008 20:13:33 GMT]]></title><description><![CDATA[<p>Bei manchen Programmen sind die Handles immer gleich, bei manchen nicht. Du könntest es also auch hard coden und nicht mit GetDlgItem holen, ist aber ziemlich unsauber und wenn das Zielprogramm geupdatet wird kannst dir natürlich auch nicht sicher sein das das handle gleich bleibt.<br />
Ne andere Möglichkeit als GetDlgItem kenn ich nicht. Es gibt natürlich noch FindWindow und konsorten aber die werden dann sicherlich auch geblockt.</p>
<p>schirrmie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1447788</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1447788</guid><dc:creator><![CDATA[schirrmie]]></dc:creator><pubDate>Fri, 01 Feb 2008 20:13:33 GMT</pubDate></item></channel></rss>