<?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[SetWindowsHookEx WM_SETTTEXT abfangen?]]></title><description><![CDATA[<p>Nabend,</p>
<p>bin gerade dabei die Nachricht WM_SETTTEXT abzufangen, habe irgendwo gelesen dass dies nicht über WH_GETMESSAGE nicht möglich ist - Habe es direkt auch ausprobiert und es funktioniert nicht. WM_QUIT wird wunderbar abgefangen.</p>
<p>Für den Hook nutze ich &quot;WH_GETMESSAGE&quot;. Kann mir hierbei jemand weiterhelfen?</p>
<p>bye</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/157447/setwindowshookex-wm_setttext-abfangen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 14:06:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/157447.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 25 Aug 2006 18:20:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SetWindowsHookEx WM_SETTTEXT abfangen? on Fri, 25 Aug 2006 18:20:59 GMT]]></title><description><![CDATA[<p>Nabend,</p>
<p>bin gerade dabei die Nachricht WM_SETTTEXT abzufangen, habe irgendwo gelesen dass dies nicht über WH_GETMESSAGE nicht möglich ist - Habe es direkt auch ausprobiert und es funktioniert nicht. WM_QUIT wird wunderbar abgefangen.</p>
<p>Für den Hook nutze ich &quot;WH_GETMESSAGE&quot;. Kann mir hierbei jemand weiterhelfen?</p>
<p>bye</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124653</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124653</guid><dc:creator><![CDATA[JayJay]]></dc:creator><pubDate>Fri, 25 Aug 2006 18:20:59 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowsHookEx WM_SETTTEXT abfangen? on Fri, 25 Aug 2006 19:47:40 GMT]]></title><description><![CDATA[<p>Das wäre hier was für die specis.....Diese Frage wurde oft gestellt und konnte immer nie 100% beantwortet werden.. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124691</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124691</guid><dc:creator><![CDATA[JayJay]]></dc:creator><pubDate>Fri, 25 Aug 2006 19:47:40 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowsHookEx WM_SETTTEXT abfangen? on Sat, 26 Aug 2006 10:35:36 GMT]]></title><description><![CDATA[<p>Juhuuuu, ich habs gelöst, der Thread kann deleted werden</p>
<p>P.S. Google is nun mein bester Freund xD</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124844</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124844</guid><dc:creator><![CDATA[JayJay]]></dc:creator><pubDate>Sat, 26 Aug 2006 10:35:36 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowsHookEx WM_SETTTEXT abfangen? on Sat, 26 Aug 2006 10:50:44 GMT]]></title><description><![CDATA[<p>JayJay schrieb:</p>
<blockquote>
<p>Juhuuuu, ich habs gelöst, der Thread kann deleted werden</p>
<p>P.S. Google is nun mein bester Freund xD</p>
</blockquote>
<p>Fake <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124848</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124848</guid><dc:creator><![CDATA[warner]]></dc:creator><pubDate>Sat, 26 Aug 2006 10:50:44 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowsHookEx WM_SETTTEXT abfangen? on Sat, 26 Aug 2006 11:08:48 GMT]]></title><description><![CDATA[<p>JayJay schrieb:</p>
<blockquote>
<p>Juhuuuu, ich habs gelöst, der Thread kann deleted werden</p>
<p>P.S. Google is nun mein bester Freund xD</p>
</blockquote>
<p>Und wie ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124852</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124852</guid><dc:creator><![CDATA[[Help]]]></dc:creator><pubDate>Sat, 26 Aug 2006 11:08:48 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowsHookEx WM_SETTTEXT abfangen? on Sat, 26 Aug 2006 11:13:21 GMT]]></title><description><![CDATA[<p>Hi, ist wirklich ein Fake! Problem besteht noch immer!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124858</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124858</guid><dc:creator><![CDATA[JayJay]]></dc:creator><pubDate>Sat, 26 Aug 2006 11:13:21 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowsHookEx WM_SETTTEXT abfangen? on Sat, 26 Aug 2006 12:56:58 GMT]]></title><description><![CDATA[<p>Also WH_GETMESSAGE fängt nur Nachrichten ab, die mit PostMessage verschickt werden.<br />
WM_SETTEXT wird oft mit SendMessage geschickt und wird daher nicht abgefangen. Es sollte mit WH_CALLWNDPROC möglich sein. Dennoch bekomm ich keine Nachricht.</p>
<p>Ich habe danach mal die kompletten WH_GETMESSAGE &amp; WH_CALLWNDPROC geloggt und alle in einer seperaten Datei gespeichert.<br />
D.h. ich erhalte Nachrichte von WH_CALLWNDPROC &amp; WH_GETMESSAGE. Somit schließe ich darauf, dass ich den Hook erfolgreich injiziert habe.<br />
Ich schicke zudem eine WM_SETTEXT Nachricht an das entsprechende Fenster, sodass eine WM_SETTEXT Nachricht in jedem Falle ankommen muss. - Das Fenster reagiert auch drauf - daher muss das irgendwie Möglich sein, diese Nachricht im Hook abzufangen.</p>
<p>Ich werde also weiterarbeiten und hier alle aktuellen Ergebnisse posten.</p>
<p>Hier noch ein wenig Code:</p>
<pre><code>LRESULT CALLBACK fnMyWndProc(int nCode, WPARAM wParam, LPARAM lParam)
{
	MSG *pmsg=(MSG*)lParam;
        if( pmsdg-&gt;message == WM_SETTEXT )
        {
             MessageBox( 0, &quot;WM_TEXT&quot;, &quot;&quot;, MB_OK );
        }
	return (CallNextHookEx (g_hMyHook2,nCode,wParam,lParam));
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1124906</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124906</guid><dc:creator><![CDATA[JayJay]]></dc:creator><pubDate>Sat, 26 Aug 2006 12:56:58 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowsHookEx WM_SETTTEXT abfangen? on Sat, 26 Aug 2006 13:14:14 GMT]]></title><description><![CDATA[<p>WM_PAIN(15) und WM_COMMAND(273) via. GETMESSAGE kann ich mittlerweise auch abfangen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124913</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124913</guid><dc:creator><![CDATA[JayJay]]></dc:creator><pubDate>Sat, 26 Aug 2006 13:14:14 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowsHookEx WM_SETTTEXT abfangen? on Sat, 26 Aug 2006 13:16:25 GMT]]></title><description><![CDATA[<p>Und warum verwendest Du einen Hook wenn es ein Subclass auch tut. Diese Art von Hook trift jedes Fenster und ist sehr schlecht für die Performance!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124914</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124914</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sat, 26 Aug 2006 13:16:25 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowsHookEx WM_SETTTEXT abfangen? on Sat, 26 Aug 2006 14:15:32 GMT]]></title><description><![CDATA[<p>1. Es trifft genau das Fenster, das ich will - dennoch kannst du gerne mir erläutern was du meinst.</p>
<p>Ich versuche aus einer RichEditbox (klasse &quot;afx:4000000:20xx&quot; KEINE &quot;RichEdit2&quot; Klasse) den Inhalt auszulesen - Das Problem ist, dass das Fenster auf keine Nachricht antwortet.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124942</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124942</guid><dc:creator><![CDATA[JayJay]]></dc:creator><pubDate>Sat, 26 Aug 2006 14:15:32 GMT</pubDate></item><item><title><![CDATA[Reply to SetWindowsHookEx WM_SETTTEXT abfangen? on Sat, 26 Aug 2006 17:43:58 GMT]]></title><description><![CDATA[<p>GetWindowText geht immer bei Edit und RichEditCtrls. Deswegen braucht man sicherlich keinen Hook!<br />
Wenn es um den RTF Inhalt geht musst Du EM_STREAMOUT verwenden!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1125077</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1125077</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sat, 26 Aug 2006 17:43:58 GMT</pubDate></item></channel></rss>