<?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[Maus macht nicht dass was ich will]]></title><description><![CDATA[<p>Hi ich habe einen Server und einen Clienten mit dem Client PC kann ich den Server PC Steuren, leider Bewegt sich die Maus Stockend und etwas komisch. Die Ersten Paar Sekunden Bewgt sie sich aber so wie ich will and wass kann das liegen ??</p>
<p>Client:</p>
<pre><code class="language-cpp">while(true)
	{
		POINT cursor;

		if(GetAsyncKeyState(VK_LBUTTON))
		{
			if(!lpress)
			{
		    lpress = true;
			send(s,&quot;X&quot;,1,0);
			}

		}
		else
		{
	       lpress = false;
		   GetCursorPos(&amp;cursor);

		   int se=send(s,(char*)&amp;cursor,sizeof(POINT),0);
		}

	}

}
</code></pre>
<pre><code class="language-cpp">while(true)
	{
		POINT cursor;

		int empf=recv(ac,(char*)&amp;cursor,sizeof(POINT),0);
		if(empf==1)
		{
		  mouse_event(MOUSEEVENTF_LEFTDOWN, plast.x, plast.y, 0, 0);
		  mouse_event(MOUSEEVENTF_LEFTUP, plast.x, plast.y, 0, 0);
		  GetDoubleClickTime():
		  mouse_event(MOUSEEVENTF_LEFTDOWN, plast.x, plast.y, 0, 0);
		  mouse_event(MOUSEEVENTF_LEFTUP, plast.x, plast.y, 0, 0);

		}
		else
		{
		SetCursorPos(cursor.x,cursor.y);
		plast = cursor;
		}

	}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/150613/maus-macht-nicht-dass-was-ich-will</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 17:25:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/150613.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Jun 2006 17:34:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Maus macht nicht dass was ich will on Sun, 18 Jun 2006 17:34:54 GMT]]></title><description><![CDATA[<p>Hi ich habe einen Server und einen Clienten mit dem Client PC kann ich den Server PC Steuren, leider Bewegt sich die Maus Stockend und etwas komisch. Die Ersten Paar Sekunden Bewgt sie sich aber so wie ich will and wass kann das liegen ??</p>
<p>Client:</p>
<pre><code class="language-cpp">while(true)
	{
		POINT cursor;

		if(GetAsyncKeyState(VK_LBUTTON))
		{
			if(!lpress)
			{
		    lpress = true;
			send(s,&quot;X&quot;,1,0);
			}

		}
		else
		{
	       lpress = false;
		   GetCursorPos(&amp;cursor);

		   int se=send(s,(char*)&amp;cursor,sizeof(POINT),0);
		}

	}

}
</code></pre>
<pre><code class="language-cpp">while(true)
	{
		POINT cursor;

		int empf=recv(ac,(char*)&amp;cursor,sizeof(POINT),0);
		if(empf==1)
		{
		  mouse_event(MOUSEEVENTF_LEFTDOWN, plast.x, plast.y, 0, 0);
		  mouse_event(MOUSEEVENTF_LEFTUP, plast.x, plast.y, 0, 0);
		  GetDoubleClickTime():
		  mouse_event(MOUSEEVENTF_LEFTDOWN, plast.x, plast.y, 0, 0);
		  mouse_event(MOUSEEVENTF_LEFTUP, plast.x, plast.y, 0, 0);

		}
		else
		{
		SetCursorPos(cursor.x,cursor.y);
		plast = cursor;
		}

	}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1080143</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1080143</guid><dc:creator><![CDATA[BBert]]></dc:creator><pubDate>Sun, 18 Jun 2006 17:34:54 GMT</pubDate></item><item><title><![CDATA[Reply to Maus macht nicht dass was ich will on Sun, 18 Jun 2006 17:48:50 GMT]]></title><description><![CDATA[<p>Hi ich habe noch etwas (vielecht) wichtiges herausgefunden.</p>
<p>Wenn ich mich beim Server und Client Proframm auf der schwarzen Konsolen Fäche befinde funktionirt alles wunderbar, aber sobald ich eines der Programme minimire oder mich aus der Fläche bewge beginnt es zu spinnen <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/1080149</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1080149</guid><dc:creator><![CDATA[BBert]]></dc:creator><pubDate>Sun, 18 Jun 2006 17:48:50 GMT</pubDate></item></channel></rss>