<?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[SendMessage(..,..,??,??);]]></title><description><![CDATA[<pre><code class="language-cpp">LRESULT SendMessage( HWND hWnd, 
UINT Msg, 
WPARAM wParam, 
LPARAM lParam 
);
</code></pre>
<p>hWnd=HWND_BROADCAST // sendet an das übergeorndetste fenster<br />
Msg=32 // nachricht - interrupt 32<br />
wParam=?? // *FRAGE<br />
lParam=?? // *FRAGE</p>
<p>*FRAGE: für was sind die letzteren beiden Parameter?<br />
bitte um ein BEISPIEL.</p>
<p>mfG (c)h</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/97058/sendmessage</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Apr 2026 07:51:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/97058.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Jan 2005 08:25:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Fri, 07 Jan 2005 08:25:55 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">LRESULT SendMessage( HWND hWnd, 
UINT Msg, 
WPARAM wParam, 
LPARAM lParam 
);
</code></pre>
<p>hWnd=HWND_BROADCAST // sendet an das übergeorndetste fenster<br />
Msg=32 // nachricht - interrupt 32<br />
wParam=?? // *FRAGE<br />
lParam=?? // *FRAGE</p>
<p>*FRAGE: für was sind die letzteren beiden Parameter?<br />
bitte um ein BEISPIEL.</p>
<p>mfG (c)h</p>
]]></description><link>https://www.c-plusplus.net/forum/post/689375</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/689375</guid><dc:creator><![CDATA[chille07]]></dc:creator><pubDate>Fri, 07 Jan 2005 08:25:55 GMT</pubDate></item><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Fri, 07 Jan 2005 08:47:41 GMT]]></title><description><![CDATA[<p>Das kommt ganz drau an, was für eine Message (2. Parameter) Du versenden willst. wParam und lParam sind 2 Möglichkeiten der Nachricht Daten mitzugeben.</p>
<p>Wenn Dir Windows zum Beispiel die Message <a href="http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowmessages/wm_size.asp" rel="nofollow">WM_SIZE</a> zuschickt, steht das hier in wParam und lParam:</p>
<blockquote>
<p><em>wParam</em><br />
Specifies the type of resizing requested. This parameter can be one of the following values.<br />
SIZE_MAXHIDE<br />
Message is sent to all pop-up windows when some other window is maximized.<br />
SIZE_MAXIMIZED<br />
The window has been maximized.<br />
SIZE_MAXSHOW<br />
Message is sent to all pop-up windows when some other window has been restored to its former size.<br />
SIZE_MINIMIZED<br />
The window has been minimized.<br />
SIZE_RESTORED<br />
The window has been resized, but neither the SIZE_MINIMIZED nor SIZE_MAXIMIZED value applies.</p>
<p><em>lParam</em><br />
The low-order word of lParam specifies the new width of the client area.<br />
The high-order word of lParam specifies the new height of the client area.</p>
</blockquote>
<p>Genauso verhält es sich mit allen Messages, die Du sendest bzw. empfängst...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/689392</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/689392</guid><dc:creator><![CDATA[Hepi]]></dc:creator><pubDate>Fri, 07 Jan 2005 08:47:41 GMT</pubDate></item><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Fri, 07 Jan 2005 08:57:08 GMT]]></title><description><![CDATA[<p>HWND_BROADCAST sendet nicht an das übergeordnte Fenster, sondern an alle toplevel Fenster.</p>
<p>MSG=32? Was soll das sein? Du willst doch wohl nicht den Interupt 32 an ein Fenster senden? nachrichten sind unter Windows alles Konstanten, die Namen haben. Windowsnachrichten famgen alle mit WM_... an zum Beispiel.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/689400</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/689400</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Fri, 07 Jan 2005 08:57:08 GMT</pubDate></item><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Fri, 07 Jan 2005 09:22:31 GMT]]></title><description><![CDATA[<p>ich wurde von einem thread - <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=95849" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?t=95849</a>- inspieriert, und möchte jetzt an eine andere Anwendung(welche nichts von ihrem glück weiss) tastatureingaben senden, also vortäuschen.</p>
<p>zum Beispiel alle 10 sec die taste 'a' vortäuschen.</p>
<p>das ist doch nicht so ein langer code. kann bitte jemand ein bsp posten?!*bidebide*</p>
<p>mfG (c)h</p>
<p>edit: ---</p>
]]></description><link>https://www.c-plusplus.net/forum/post/689413</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/689413</guid><dc:creator><![CDATA[chille07]]></dc:creator><pubDate>Fri, 07 Jan 2005 09:22:31 GMT</pubDate></item><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Fri, 07 Jan 2005 10:25:05 GMT]]></title><description><![CDATA[<p>Dazu brauchst du das Handle der Anwendung.<br />
Das bekommst du mit FindWindow.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/689465</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/689465</guid><dc:creator><![CDATA[Anfänger14]]></dc:creator><pubDate>Fri, 07 Jan 2005 10:25:05 GMT</pubDate></item><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Fri, 07 Jan 2005 10:59:07 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">HWND GetHwnd(TCHAR strTitle[256])
{
	return(FindWindow(NULL,strTitle));
}
</code></pre>
<p>...</p>
<pre><code class="language-cpp">HWND hwnd;
	hwnd=GetHwnd(&quot;test.txt - Editor&quot;);
	while(1)
	{
	SendMessage(hwnd,?,?,?);
	Sleep(1000);
	}
</code></pre>
<p>... und jetzt?</p>
<p>sagen wir einfach mal: ich möchte mit der funktion ein 'a' senden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/689492</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/689492</guid><dc:creator><![CDATA[chille07]]></dc:creator><pubDate>Fri, 07 Jan 2005 10:59:07 GMT</pubDate></item><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Fri, 07 Jan 2005 11:02:59 GMT]]></title><description><![CDATA[<p>Dazu brauchst du die Nachricht WM_KEYDOWN bzw. WM_KEYUP. Schau mal in der MSDN nach was dann bei lParam und wParam stehen muss. (In einem vom beiden ist dann der zu sendende Buchstabe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/689500</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/689500</guid><dc:creator><![CDATA[flammenvogel]]></dc:creator><pubDate>Fri, 07 Jan 2005 11:02:59 GMT</pubDate></item><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Fri, 07 Jan 2005 11:27:14 GMT]]></title><description><![CDATA[<p>WM_CHAR dürfte auch gehn:</p>
<p>HWND hwnd;<br />
hwnd=GetHwnd(&quot;test.txt - Editor&quot;);<br />
while(1)<br />
{<br />
SendMessage(hwnd,WM_CHAR, (WPARAM)'a',0);<br />
Sleep(1000);<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/689526</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/689526</guid><dc:creator><![CDATA[Anfänger14]]></dc:creator><pubDate>Fri, 07 Jan 2005 11:27:14 GMT</pubDate></item><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Fri, 07 Jan 2005 12:17:31 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/8626">@Anfänger14</a>:</p>
<pre><code class="language-cpp">void main()
{
	char name[256];
	HWND hwnd;

	do
	{
		printf(&quot;\n Namen eingeben..&quot;);
		gets(name);
		hwnd=FindWindow(NULL,name); 
	}while(hwnd==NULL);

	while(1) 
	{ 
		printf(&quot;\n%ld&quot;,SendMessage(hwnd,WM_CHAR, (WPARAM)'a',0)); 
		Sleep(1000); 
	}
}
</code></pre>
<p>SendMessage gibt immer 0 zurück - <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="👍"
    /> oder <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_down"
      title=":-1:"
      alt="👎"
    /> ?<br />
beim Name muss man nur den genauen Titel eingeben.<br />
In der test.txt tut sich nichts... kannst den code oben ja mal probieren...</p>
<p>mfG (c)h</p>
]]></description><link>https://www.c-plusplus.net/forum/post/689595</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/689595</guid><dc:creator><![CDATA[chille07]]></dc:creator><pubDate>Fri, 07 Jan 2005 12:17:31 GMT</pubDate></item><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Sat, 08 Jan 2005 01:30:02 GMT]]></title><description><![CDATA[<p>Willst du was in das Edit reinschreiben? Dann würde ich Nachricht nicht an das Hauptfenster schicken.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/690457</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/690457</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Sat, 08 Jan 2005 01:30:02 GMT</pubDate></item><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Sat, 08 Jan 2005 09:18:26 GMT]]></title><description><![CDATA[<p>Luckie schrieb:</p>
<blockquote>
<p>Willst du was in das Edit reinschreiben? Dann würde ich Nachricht nicht an das Hauptfenster schicken.</p>
</blockquote>
<p>SONDERN?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/690512</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/690512</guid><dc:creator><![CDATA[chille07]]></dc:creator><pubDate>Sat, 08 Jan 2005 09:18:26 GMT</pubDate></item><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Sat, 08 Jan 2005 18:16:40 GMT]]></title><description><![CDATA[<p>chille07 schrieb:</p>
<blockquote>
<p>Luckie schrieb:</p>
<blockquote>
<p>Willst du was in das Edit reinschreiben? Dann würde ich Nachricht nicht an das Hauptfenster schicken.</p>
</blockquote>
<p>SONDERN?</p>
</blockquote>
<p>Wie wär es direkt mit dem Child <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="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/691017</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/691017</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sat, 08 Jan 2005 18:16:40 GMT</pubDate></item><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Sat, 08 Jan 2005 19:28:03 GMT]]></title><description><![CDATA[<p>Ich dachte mir auch schon das man die eigentlich ans child schicken müsste die Nachrichten aber wie kriegt man das passende HWND. Man hat von dem Aufbau des anderen Progs doch gar keine Ahnung?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/691094</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/691094</guid><dc:creator><![CDATA[flammenvogel]]></dc:creator><pubDate>Sat, 08 Jan 2005 19:28:03 GMT</pubDate></item><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Sat, 08 Jan 2005 20:01:07 GMT]]></title><description><![CDATA[<p>flammenvogel schrieb:</p>
<blockquote>
<p>Man hat von dem Aufbau des anderen Progs doch gar keine Ahnung?</p>
</blockquote>
<p>Den kannst du ja mittels Spy++ bzw. WinSpector o.ä. analysieren <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="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/691134</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/691134</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sat, 08 Jan 2005 20:01:07 GMT</pubDate></item><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Sat, 08 Jan 2005 21:54:43 GMT]]></title><description><![CDATA[<p>hmm... mit child-prozessen kenne ich mich nicht so aus...<br />
ich wollte doch in einem anderen programm eingaben vortäuschen -<br />
hab inzwischen &quot;keybd_event(...)&quot; gefunden<br />
es funktioniert, aber ich verstehe nicht, für was der 2. 3. und 4. parameter sind...<br />
ich mache immer:<br />
keybd_event(VK_***,0,0,0); und<br />
keybd_event(VK_***,0,KEYEVENTF_KEYUP,0);<br />
^^das funktioniert.</p>
<p>wollte es in der msdn suchen, blicke (bei der msdn-funktionsweise) aber irgendwie nicht durch - gibts da eine startseite oder suchseite oder so?</p>
<p>mfG (c)h</p>
]]></description><link>https://www.c-plusplus.net/forum/post/691202</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/691202</guid><dc:creator><![CDATA[chille07]]></dc:creator><pubDate>Sat, 08 Jan 2005 21:54:43 GMT</pubDate></item><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Sat, 08 Jan 2005 22:05:13 GMT]]></title><description><![CDATA[<p><a href="http://msdn.microsoft.com" rel="nofollow">msdn.microsoft.com</a></p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/1644">@flenders</a> Wie willst du das machen mit den Child Fenster das HWND des Childfenster ändert sich ja ständig. Wie willst du dann bitteschön ein Childfenster direkt ansprechen???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/691216</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/691216</guid><dc:creator><![CDATA[flammenvogel]]></dc:creator><pubDate>Sat, 08 Jan 2005 22:05:13 GMT</pubDate></item><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Sat, 08 Jan 2005 22:33:49 GMT]]></title><description><![CDATA[<p>flammenvogel schrieb:</p>
<blockquote>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/1644">@flenders</a> Wie willst du das machen mit den Child Fenster das HWND des Childfenster ändert sich ja ständig. Wie willst du dann bitteschön ein Childfenster direkt ansprechen???</p>
</blockquote>
<p>Einfach über FindWindowEx bis zum Child &quot;durchhangeln&quot; - oder was ist dein Problem <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/691236</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/691236</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sat, 08 Jan 2005 22:33:49 GMT</pubDate></item><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Sat, 08 Jan 2005 23:59:48 GMT]]></title><description><![CDATA[<p>edit Windows und so weiter haben doch keine Namen an denen man sie wiedererkennen kann oder willst du die Message einfach an alle in Frage kommenden childs senden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/691279</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/691279</guid><dc:creator><![CDATA[flammenvogel]]></dc:creator><pubDate>Sat, 08 Jan 2005 23:59:48 GMT</pubDate></item><item><title><![CDATA[Reply to SendMessage(..,..,??,??); on Sun, 09 Jan 2005 08:14:54 GMT]]></title><description><![CDATA[<p>flammenvogel schrieb:</p>
<blockquote>
<p>edit Windows und so weiter haben doch keine Namen an denen man sie wiedererkennen kann</p>
</blockquote>
<p>... aber normalerweise eine ID <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="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/691328</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/691328</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Sun, 09 Jan 2005 08:14:54 GMT</pubDate></item></channel></rss>