<?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[Mausklick-Nachricht]]></title><description><![CDATA[<p>Hi,</p>
<p>wie kann ich einen Mausklick mit der linken Maustaste simulieren?<br />
Ich hab schon folgendes probiert aber irgendwie scheint das nicht zu funktionieren:</p>
<pre><code class="language-cpp">SendMessage(WindowHandle,WM_LBUTTONDOWN,NULL,NULL);
	Sleep(2000);
	SendMessage(WindowHandle,WM_LBUTTONUP,NULL,NULL);
</code></pre>
<p>Bin Anfänger also wenn ihrs wisst bitte mit Beispiel und den Code einfach halten wenns geht <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="🙂"
    /> <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/topic/129305/mausklick-nachricht</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 02:46:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/129305.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Dec 2005 13:50:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mausklick-Nachricht on Mon, 12 Dec 2005 13:50:24 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>wie kann ich einen Mausklick mit der linken Maustaste simulieren?<br />
Ich hab schon folgendes probiert aber irgendwie scheint das nicht zu funktionieren:</p>
<pre><code class="language-cpp">SendMessage(WindowHandle,WM_LBUTTONDOWN,NULL,NULL);
	Sleep(2000);
	SendMessage(WindowHandle,WM_LBUTTONUP,NULL,NULL);
</code></pre>
<p>Bin Anfänger also wenn ihrs wisst bitte mit Beispiel und den Code einfach halten wenns geht <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="🙂"
    /> <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/940233</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/940233</guid><dc:creator><![CDATA[john77en]]></dc:creator><pubDate>Mon, 12 Dec 2005 13:50:24 GMT</pubDate></item><item><title><![CDATA[Reply to Mausklick-Nachricht on Mon, 12 Dec 2005 14:41:27 GMT]]></title><description><![CDATA[<p>ich hätte es auch so gemacht, aber hast du mal probiert lParam und wParam festzulegen</p>
<blockquote>
<p>Parameters</p>
<p>wParam<br />
Indicates whether various virtual keys are down. This parameter can be one or more of the following values.</p>
<p>MK_CONTROL<br />
The CTRL key is down.<br />
MK_LBUTTON<br />
The left mouse button is down.<br />
MK_MBUTTON<br />
The middle mouse button is down.<br />
MK_RBUTTON<br />
The right mouse button is down.<br />
MK_SHIFT<br />
The SHIFT key is down.<br />
MK_XBUTTON1<br />
Windows 2000/XP: The first X button is down.<br />
MK_XBUTTON2<br />
Windows 2000/XP: The second X button is down.</p>
<p>lParam<br />
The low-order word specifies the x-coordinate of the cursor. The coordinate is relative to the upper-left corner of the client area.</p>
<p>The high-order word specifies the y-coordinate of the cursor. The coordinate is relative to the upper-left corner of the client area.</p>
</blockquote>
<p>ich weiß aber net ob das was bringt<br />
mfg killsmaker</p>
]]></description><link>https://www.c-plusplus.net/forum/post/940296</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/940296</guid><dc:creator><![CDATA[nur so]]></dc:creator><pubDate>Mon, 12 Dec 2005 14:41:27 GMT</pubDate></item><item><title><![CDATA[Reply to Mausklick-Nachricht on Mon, 12 Dec 2005 16:47:19 GMT]]></title><description><![CDATA[<p>Ansonsten versuch doch mal <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/sendinput.asp" rel="nofollow">SendInput()</a>. Müsste auch funktionieren, hab ich aber noch nie verwendet. :xmas1:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/940398</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/940398</guid><dc:creator><![CDATA[freaked]]></dc:creator><pubDate>Mon, 12 Dec 2005 16:47:19 GMT</pubDate></item><item><title><![CDATA[Reply to Mausklick-Nachricht on Mon, 12 Dec 2005 16:48:19 GMT]]></title><description><![CDATA[<p>was willst du machen? wenn du versuchst, nen button &quot;fremdzuklicken&quot;, dann bekommt der button die nachricht, nicht das hauptfenster.</p>
<p>gib mal nen bissel code, dann kann man dir sicher helfen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/940400</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/940400</guid><dc:creator><![CDATA[ItsNotYou]]></dc:creator><pubDate>Mon, 12 Dec 2005 16:48:19 GMT</pubDate></item><item><title><![CDATA[Reply to Mausklick-Nachricht on Mon, 12 Dec 2005 18:25:26 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">ShellExecute(NULL, &quot;open&quot;, &quot;iexplore&quot;, &quot;http://ed2k.2x4u.de/index.html&quot;, NULL, SW_MAXIMIZE);

	HWND WindowHandle = NULL;

	Sleep(4000);

	WindowHandle = FindWindow(NULL,&quot;server.met - Server List for eDonkey and eMule - Microsoft Internet Explorer&quot;);

	SetCursorPos(512,400);

	Sleep(2000);
	SendMessage(WindowHandle,WM_LBUTTONDOWN, NULL, NULL);
	Sleep(2000);
	SendMessage(WindowHandle,WM_LBUTTONUP, NULL, NULL);
</code></pre>
<p>Mit LPARAM ändern hab ich probiert funkioniert aber auch net <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="😞"
    /> hoffe jetzt kann ir einer helfen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/940474</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/940474</guid><dc:creator><![CDATA[john77en]]></dc:creator><pubDate>Mon, 12 Dec 2005 18:25:26 GMT</pubDate></item><item><title><![CDATA[Reply to Mausklick-Nachricht on Tue, 13 Dec 2005 16:32:03 GMT]]></title><description><![CDATA[<p>ist windowhandle ein handle innerhalb des iexplorers? u.U. musst du die message an den desktop schicken, das weiß ich aber nicht.</p>
<p>da das ganze vom iexplorer verwaltet wird, musst du dich in der richtung bestimmt nochmal umsehen.</p>
<p>hoffe, das hilft irgendwie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/941208</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/941208</guid><dc:creator><![CDATA[ItsNotYou]]></dc:creator><pubDate>Tue, 13 Dec 2005 16:32:03 GMT</pubDate></item></channel></rss>