<?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[Ermitteln eines Textfeldes von einem externen Programms?]]></title><description><![CDATA[<p>Hallo,<br />
wie kann ich von einem externen Programms über Window-Handle den Inhalt des Textfeldes in mein C++ Programm im RichEdit übertragen?</p>
<p>Ich wäre euch sehr dankbar, wenn ihr mir helfen könntet.</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/196456/ermitteln-eines-textfeldes-von-einem-externen-programms</link><generator>RSS for Node</generator><lastBuildDate>Fri, 19 Jun 2026 12:16:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/196456.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 29 Oct 2007 22:52:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ermitteln eines Textfeldes von einem externen Programms? on Mon, 29 Oct 2007 22:52:11 GMT]]></title><description><![CDATA[<p>Hallo,<br />
wie kann ich von einem externen Programms über Window-Handle den Inhalt des Textfeldes in mein C++ Programm im RichEdit übertragen?</p>
<p>Ich wäre euch sehr dankbar, wenn ihr mir helfen könntet.</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1394406</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1394406</guid><dc:creator><![CDATA[bruce85]]></dc:creator><pubDate>Mon, 29 Oct 2007 22:52:11 GMT</pubDate></item><item><title><![CDATA[Reply to Ermitteln eines Textfeldes von einem externen Programms? on Tue, 30 Oct 2007 20:44:27 GMT]]></title><description><![CDATA[<p>Hat keiner ne idee wie ich das machen könnte?</p>
<p>Also nochmal,<br />
Ich öffne jetzt z.B. den Texteditor von Windows und gebe einen beliebigen Text ein, so und jetzt möchte ich mit C++ Builder etwas versuchen und zwar, füge ich bei meiner Form einen RichEdit1 ein und auf Button1-&gt;Click soll im RichEdit1 dieser Text stehen welche im Texteditor von Windows steht.</p>
<p>Mit HANDLE kann ich das Formular finden, aber wie kann ich das auslesen?</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1394886</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1394886</guid><dc:creator><![CDATA[bruce85]]></dc:creator><pubDate>Tue, 30 Oct 2007 20:44:27 GMT</pubDate></item><item><title><![CDATA[Reply to Ermitteln eines Textfeldes von einem externen Programms? on Tue, 30 Oct 2007 21:16:21 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-14774.html" rel="nofollow">akari</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-2.html" rel="nofollow">VCL/CLX (Borland C++ Builder)</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-4.html" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1394902</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1394902</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Tue, 30 Oct 2007 21:16:21 GMT</pubDate></item><item><title><![CDATA[Reply to Ermitteln eines Textfeldes von einem externen Programms? on Tue, 30 Oct 2007 21:51:34 GMT]]></title><description><![CDATA[<p>Mit WM_GETTEXT.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1394916</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1394916</guid><dc:creator><![CDATA[tenchou]]></dc:creator><pubDate>Tue, 30 Oct 2007 21:51:34 GMT</pubDate></item><item><title><![CDATA[Reply to Ermitteln eines Textfeldes von einem externen Programms? on Tue, 30 Oct 2007 23:57:39 GMT]]></title><description><![CDATA[<p>Vielen Dank, ich hab das jetzt hinbekommen.<br />
Aber wenn ich das alles in einem Timer packe und Interval auf 1 stelle, da es jede Millisekunde Aktualisiert werden soll, hängt sich mein PC nach ca. halbe Minute auf.<br />
Ich habe mal Application-&gt;ProcessMessage(); benutzt, aber leider hilft das nicht.</p>
<p>Hier mal der Code:</p>
<pre><code class="language-cpp">void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
    HWND hwndTest = FindWindow(NULL,&quot;Test Fenster&quot;);
    HWND hwndEdit = FindWindowEx(hwndTest, NULL, &quot;Edit&quot;, NULL);
    int nLen = SendMessage(hwndEdit, WM_GETTEXTLENGTH, 0, 0);
    char *pText = new char[nLen];
    SendMessage(hwndEdit, WM_GETTEXT, (WPARAM)nLen, (LPARAM)pText);
    RichEdit2-&gt;Text = pText;
    Application-&gt;ProcessMessages();
}
</code></pre>
<p>Woran kann das liegen?</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1394953</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1394953</guid><dc:creator><![CDATA[bruce85]]></dc:creator><pubDate>Tue, 30 Oct 2007 23:57:39 GMT</pubDate></item><item><title><![CDATA[Reply to Ermitteln eines Textfeldes von einem externen Programms? on Wed, 31 Oct 2007 01:49:08 GMT]]></title><description><![CDATA[<p>Jede Millisekunde wirst du es nicht aktualisieren können, es gibt auch noch andere Threads, die Rechenzeit haben wollen. Du musst den allozierten Speicher schon auch wieder freigeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1394958</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1394958</guid><dc:creator><![CDATA[tenchou]]></dc:creator><pubDate>Wed, 31 Oct 2007 01:49:08 GMT</pubDate></item><item><title><![CDATA[Reply to Ermitteln eines Textfeldes von einem externen Programms? on Wed, 31 Oct 2007 13:28:38 GMT]]></title><description><![CDATA[<p>Danke.<br />
Aber wie könnte ich das machen, dass es immer 1 Millisekunde Aktualiesiert ohne das sich das Programm aufhängt?</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395221</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395221</guid><dc:creator><![CDATA[bruce85]]></dc:creator><pubDate>Wed, 31 Oct 2007 13:28:38 GMT</pubDate></item></channel></rss>