<?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[Taste an Spiel senden]]></title><description><![CDATA[<p>Hallo, ich möchte an ein DirectX Spiel eine Taste senden. In Anwendungen wie Notepad klappt das ohne Probleme aber in dem Spiel kommt einfach nichts an. Habs schon mit sendinput, sendmessage,postmessage und keybd_event versucht aber nichts geht.<br />
Hier mal die einzelnen Funktionen wie ich sie bisher probiert habe:</p>
<pre><code class="language-cpp">///////
INPUT InputData;
int iEvents;

InputData.type = INPUT_KEYBOARD;
InputData.ki.wVk = 0x48;
InputData.ki.wScan = 35;
InputData.ki.dwFlags = 0;
InputData.ki.time = time(NULL);
InputData.ki.dwExtraInfo = 0;

iEvents = SendInput(1, &amp;InputData, sizeof(InputData));
/////

/////			  
SendMessage(hWnd, '5',0, 0);
////

/////
keybd_event('5', 0, 0, 0);
keybd_event('5', 0, KEYEVENTF_KEYUP, 0); 
////

////
PostMessage(hWnd, WM_CHAR, static_cast&lt;WPARAM&gt;('5'), 0L); 
////
</code></pre>
<p>Hat noch jemand ne Idee? Benutz ich die Funktionen falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/204473/taste-an-spiel-senden</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 09:37:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/204473.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 03 Feb 2008 18:59:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Taste an Spiel senden on Sun, 03 Feb 2008 18:59:06 GMT]]></title><description><![CDATA[<p>Hallo, ich möchte an ein DirectX Spiel eine Taste senden. In Anwendungen wie Notepad klappt das ohne Probleme aber in dem Spiel kommt einfach nichts an. Habs schon mit sendinput, sendmessage,postmessage und keybd_event versucht aber nichts geht.<br />
Hier mal die einzelnen Funktionen wie ich sie bisher probiert habe:</p>
<pre><code class="language-cpp">///////
INPUT InputData;
int iEvents;

InputData.type = INPUT_KEYBOARD;
InputData.ki.wVk = 0x48;
InputData.ki.wScan = 35;
InputData.ki.dwFlags = 0;
InputData.ki.time = time(NULL);
InputData.ki.dwExtraInfo = 0;

iEvents = SendInput(1, &amp;InputData, sizeof(InputData));
/////

/////			  
SendMessage(hWnd, '5',0, 0);
////

/////
keybd_event('5', 0, 0, 0);
keybd_event('5', 0, KEYEVENTF_KEYUP, 0); 
////

////
PostMessage(hWnd, WM_CHAR, static_cast&lt;WPARAM&gt;('5'), 0L); 
////
</code></pre>
<p>Hat noch jemand ne Idee? Benutz ich die Funktionen falsch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1448684</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1448684</guid><dc:creator><![CDATA[HansPeterjunior]]></dc:creator><pubDate>Sun, 03 Feb 2008 18:59:06 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Sun, 03 Feb 2008 19:09:12 GMT]]></title><description><![CDATA[<p>Hi, ne Lösung hab ich zwar nicht, aber ich glaub ich kann dir sagen warum:<br />
Das Spiel benutzt wahrscheinlich Direct Input.<br />
Wikipedia sagt:</p>
<p>'Der Zugriff über DirectInput umgeht das Windows Message System (d. h. Ereignis-, Melde- und Warteschlangen) und erfolgt direkt auf die Hardware;'</p>
<p>Eine Idee hab ich leider nit.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1448694</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1448694</guid><dc:creator><![CDATA[macmallow]]></dc:creator><pubDate>Sun, 03 Feb 2008 19:09:12 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Sun, 03 Feb 2008 19:13:16 GMT]]></title><description><![CDATA[<p>Sowas, hab ich mir schon gedacht. Ich bin mir aber ziemlich sicher, dass sowas möglich sein sollte. Irgend jemand ne idee?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1448699</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1448699</guid><dc:creator><![CDATA[HansPeterjunior]]></dc:creator><pubDate>Sun, 03 Feb 2008 19:13:16 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Sun, 03 Feb 2008 20:26:32 GMT]]></title><description><![CDATA[<p>Wie waers mit nen Hook?</p>
<p>Gruß Tobi.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1448763</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1448763</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Sun, 03 Feb 2008 20:26:32 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Sun, 03 Feb 2008 20:34:57 GMT]]></title><description><![CDATA[<p>T0bi schrieb:</p>
<blockquote>
<p>Wie waers mit nen Hook?</p>
<p>Gruß Tobi.</p>
</blockquote>
<p>Und erläutere mal wie du dir das vorstellst in diesem Fall... <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/1448766</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1448766</guid><dc:creator><![CDATA[gosha16]]></dc:creator><pubDate>Sun, 03 Feb 2008 20:34:57 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Sun, 03 Feb 2008 21:09:56 GMT]]></title><description><![CDATA[<p>hmm kann man nicht die DirectInpute hooken?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1448787</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1448787</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Sun, 03 Feb 2008 21:09:56 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Sun, 03 Feb 2008 21:36:18 GMT]]></title><description><![CDATA[<p>So, hab mich ma registriert (bin der thread-ersteller).<br />
also von hooks versteh ich gar nichts. kann mir da mal jemand das prinzip erklären?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1448796</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1448796</guid><dc:creator><![CDATA[Grabgewalt]]></dc:creator><pubDate>Sun, 03 Feb 2008 21:36:18 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Mon, 04 Feb 2008 11:04:40 GMT]]></title><description><![CDATA[<p><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="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1448957</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1448957</guid><dc:creator><![CDATA[Grabgewalt]]></dc:creator><pubDate>Mon, 04 Feb 2008 11:04:40 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Mon, 04 Feb 2008 11:56:29 GMT]]></title><description><![CDATA[<p>schau mal ins FAQ, zweite seite, da muesste nen Beitrag von toom sein, da siehste das prinzip.</p>
<p>Wie das allerdings mit DirectInput gehen soll, keine Ahnung. Da wirst du wohl googlen müssen.</p>
<p>Gruß Tobi.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1448981</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1448981</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Mon, 04 Feb 2008 11:56:29 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Mon, 04 Feb 2008 12:42:05 GMT]]></title><description><![CDATA[<p>und ne andere möglichkeit fällt niemandem ein?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1449006</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1449006</guid><dc:creator><![CDATA[Grabgewalt]]></dc:creator><pubDate>Mon, 04 Feb 2008 12:42:05 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Mon, 04 Feb 2008 21:07:49 GMT]]></title><description><![CDATA[<p><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="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1449359</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1449359</guid><dc:creator><![CDATA[Grabgewalt]]></dc:creator><pubDate>Mon, 04 Feb 2008 21:07:49 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Mon, 04 Feb 2008 21:46:57 GMT]]></title><description><![CDATA[<p>Ochherrjeh, das ging irgendwie, aber ich hab vergessen wie. Der Trick war auf jeden Fall die Felder unter <a href="http://InputData.ki" rel="nofollow">InputData.ki</a> richtig auszufüllen, bloss weiss ich nimmer wie genau, bzw. bin mir nichtmehr sicher.</p>
<p>Könnte sein dass man KEYEVENTF_SCANCODE setzen musste, und dann eben den Scancode in wScan reinschreiben. wVk sollte man dazu IIRC auf 0 setzen. Probier das mal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1449379</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1449379</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Mon, 04 Feb 2008 21:46:57 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Tue, 05 Feb 2008 14:08:17 GMT]]></title><description><![CDATA[<p>hustbaer schrieb:</p>
<blockquote>
<p>Ochherrjeh, das ging irgendwie, aber ich hab vergessen wie. Der Trick war auf jeden Fall die Felder unter <a href="http://InputData.ki" rel="nofollow">InputData.ki</a> richtig auszufüllen, bloss weiss ich nimmer wie genau, bzw. bin mir nichtmehr sicher.</p>
<p>Könnte sein dass man KEYEVENTF_SCANCODE setzen musste, und dann eben den Scancode in wScan reinschreiben. wVk sollte man dazu IIRC auf 0 setzen. Probier das mal.</p>
</blockquote>
<p>kannst mir das nochma genau erklären? KEYEVENTF_SCANCODE setzen?</p>
<p>habs jetzt ma so gemacht, aber auch das funktioniert nicht. in andern anwendungen wie z.b. word oder so funktioniert das, nur in dem spiel tut sich einfach nichts,</p>
<pre><code class="language-cpp">INPUT InputData;
			int iEvents;

	InputData.type = INPUT_KEYBOARD;
	InputData.ki.wVk = 0;
	InputData.ki.wScan = 35;
	InputData.ki.dwFlags = KEYEVENTF_SCANCODE;
	InputData.ki.time = time(NULL);
	InputData.ki.dwExtraInfo = 0;

	iEvents = SendInput(1, &amp;InputData, sizeof(InputData));
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1449785</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1449785</guid><dc:creator><![CDATA[Grabgewalt]]></dc:creator><pubDate>Tue, 05 Feb 2008 14:08:17 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Tue, 05 Feb 2008 17:19:23 GMT]]></title><description><![CDATA[<p>Grabgewalt schrieb:</p>
<blockquote>
<p>hustbaer schrieb:</p>
<blockquote>
<p>Ochherrjeh, das ging irgendwie, aber ich hab vergessen wie. Der Trick war auf jeden Fall die Felder unter <a href="http://InputData.ki" rel="nofollow">InputData.ki</a> richtig auszufüllen, bloss weiss ich nimmer wie genau, bzw. bin mir nichtmehr sicher.</p>
<p>Könnte sein dass man KEYEVENTF_SCANCODE setzen musste, und dann eben den Scancode in wScan reinschreiben. wVk sollte man dazu IIRC auf 0 setzen. Probier das mal.</p>
</blockquote>
<p>kannst mir das nochma genau erklären? KEYEVENTF_SCANCODE setzen?</p>
<p>habs jetzt ma so gemacht, aber auch das funktioniert nicht. in andern anwendungen wie z.b. word oder so funktioniert das, nur in dem spiel tut sich einfach nichts,</p>
<pre><code class="language-cpp">INPUT InputData;
			int iEvents;

	
	InputData.type = INPUT_KEYBOARD;
	InputData.ki.wVk = 0;
	InputData.ki.wScan = 35;
	InputData.ki.dwFlags = KEYEVENTF_SCANCODE;
	InputData.ki.time = time(NULL);
	InputData.ki.dwExtraInfo = 0;

	iEvents = SendInput(1, &amp;InputData, sizeof(InputData));
</code></pre>
</blockquote>
<p>Fast...:</p>
<pre><code class="language-cpp">INPUT InputData;
	int iEvents;

	// key-down
	InputData.type = INPUT_KEYBOARD;
	InputData.ki.wVk = 0;
	InputData.ki.wScan = 35;
	InputData.ki.dwFlags = KEYEVENTF_SCANCODE;
	InputData.ki.time = 0;
	InputData.ki.dwExtraInfo = 0;

	iEvents = SendInput(1, &amp;InputData, sizeof(InputData));

	Sleep(100);

	// key-up
	InputData.type = INPUT_KEYBOARD;
	InputData.ki.wVk = 0;
	InputData.ki.wScan = 35;
	InputData.ki.dwFlags = KEYEVENTF_SCANCODE | KEYEVENTF_KEYUP;
	InputData.ki.time = 0;
	InputData.ki.dwExtraInfo = 0;

	iEvents = SendInput(1, &amp;InputData, sizeof(InputData));
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1449976</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1449976</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Tue, 05 Feb 2008 17:19:23 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Tue, 05 Feb 2008 17:27:38 GMT]]></title><description><![CDATA[<p>klappt leider auch nicht <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="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1449982</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1449982</guid><dc:creator><![CDATA[Grabgewalt]]></dc:creator><pubDate>Tue, 05 Feb 2008 17:27:38 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Tue, 05 Feb 2008 20:48:00 GMT]]></title><description><![CDATA[<p>Ich hab es mit einem SDL Spiel probiert (verwendet das DirectX?) und das simmulieren von einem Tastendruck (bzw. mehreren) funktioniert recht gut:</p>
<p>in diesem Thread sieht man Auszüge aus dem Code meines Programms:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-204348.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-204348.html</a></p>
<p>was aber bei mir noch nicht ganz funktioniert (weswegen ich den Thread auch erstellt hab) ist das richtige zeitliche Abstimmen der Ereignisse - so verhält sich das Spiel bei jedem Ablauf ein und derselben Steuerdatei jedes mal ein wenig anders <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=":\"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1450074</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1450074</guid><dc:creator><![CDATA[Timmy 0]]></dc:creator><pubDate>Tue, 05 Feb 2008 20:48:00 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Tue, 05 Feb 2008 21:29:25 GMT]]></title><description><![CDATA[<p>also auch mit nem hook gemacht letztlich. das muss doch auch irgendwie einfacher gehn.... ich will nich einfach nur was kopiern, will das was ich benutz auch verstehen und hooks sind schon was für sich find ich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1450099</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1450099</guid><dc:creator><![CDATA[Grabgewalt]]></dc:creator><pubDate>Tue, 05 Feb 2008 21:29:25 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Tue, 05 Feb 2008 21:32:49 GMT]]></title><description><![CDATA[<p>nein, du verstehst es falsch - der hook code ist dort nur zum aufnehmen...</p>
<p>der für dich wesentliche teil ist das hier:</p>
<pre><code class="language-cpp">inline INPUT KeyDown(WORD vk, WORD sc, HWND hwnd) {
    INPUT ipSignal;
    ipSignal.type           = INPUT_KEYBOARD;
    ipSignal.ki.wVk         = vk;
    ipSignal.ki.wScan       = sc;
    ipSignal.ki.dwFlags     = 0L;
    ipSignal.ki.time        = 0L;
    ipSignal.ki.dwExtraInfo = (ULONG_PTR)hwnd;
    //ipSignal.ki.dwExtraInfo = 0; //Fenster mit dem Fokus
    SendInput(1, &amp;ipSignal, sizeof(ipSignal));
    return ipSignal;
}
inline INPUT KeyUp(INPUT ip) {
    ip.ki.dwFlags     = KEYEVENTF_KEYUP;
    SendInput(1, &amp;ip, sizeof(ip));
    return ip;
}
</code></pre>
<p>wobei dass mit ipSignal.ki.dwExtraInfo = (ULONG_PTR)hwnd; irgendwie nicht so ganz wie gewünscht funktioniert - Nachrichten werden immer nur an das Fenster mit dem Fokus geschickt...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1450104</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1450104</guid><dc:creator><![CDATA[Timmy 0]]></dc:creator><pubDate>Tue, 05 Feb 2008 21:32:49 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Tue, 05 Feb 2008 23:38:41 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/18818">@Grabgewalt</a>:</p>
<p><a href="http://wwwx.cs.unc.edu/~gb/wp/blog/2007/11/16/sending-key-events-to-pygame-programs/" rel="nofollow">http://wwwx.cs.unc.edu/~gb/wp/blog/2007/11/16/sending-key-events-to-pygame-programs/</a></p>
<p>Der macht im Prinzip nix anders.<br />
Keine Ahnung warum das bei dir dann nicht will.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1450179</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1450179</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Tue, 05 Feb 2008 23:38:41 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Wed, 06 Feb 2008 14:52:06 GMT]]></title><description><![CDATA[<p>ich verstehs auch nich <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="😞"
    /> er hats im grunde auch nich anders als ich...</p>
<p>hier mal mein bisheriger code (gekürzt):</p>
<pre><code class="language-cpp">#define _WIN32_WINNT 0x0500
#include &lt;cstdlib&gt;
#include &lt;iostream&gt;
#include &lt;windows.h&gt;
#include &lt;fstream&gt;
#include &lt;string&gt;
#define getPixelColor(x,y) GetPixel(GetDC(0),(x),(y))
#include &lt;time.h&gt;
#if(_WIN32_WINNT &gt;= 0x0500)
#define KEYEVENTF_UNICODE 0x0004  /*Hier muss ich wohl noch was ändern?! Ich will die Taste 5 drücken*/
#define KEYEVENTF_SCANCODE 0x0008
#endif /* _WIN32_WINNT &gt;= 0x0500 */
using namespace std;

COLORREF pixel;

int main()
{

HWND hWnd;
hWnd = FindWindow(0,&quot;KalOnline&quot;);

HDC hdc;
hdc=GetDC(NULL);

SetFocus(hWnd);
SetForegroundWindow(hWnd);

while(true)
{
RECT rcWindow;
GetWindowRect(hWnd, &amp;rcWindow); 

Sleep(50); 
pixel = GetPixel(hdc,rcWindow.left+120,rcWindow.top+38);  /*Nimmt den Pixelwert an einer bestimmten Stelle des Spiels, durch die GetWindowRect funktion wird bei jeder Auflösung die richtige Position genommen*/

          if (pixel != 2232746) 
		  {
	 INPUT InputData;
         int iEvents;

    // key-down
    InputData.type = INPUT_KEYBOARD;
    InputData.ki.wVk = 0;
    InputData.ki.wScan = 06;
    InputData.ki.dwFlags = KEYEVENTF_SCANCODE;
    InputData.ki.time = 0;
    InputData.ki.dwExtraInfo = 0;

    iEvents = SendInput(1, &amp;InputData, sizeof(InputData));

    Sleep(100);

    // key-up
    InputData.type = INPUT_KEYBOARD;
    InputData.ki.wVk = 0;
    InputData.ki.wScan = 06;
    InputData.ki.dwFlags = KEYEVENTF_SCANCODE | KEYEVENTF_KEYUP;
    InputData.ki.time = 0;
    InputData.ki.dwExtraInfo = 0;

    iEvents = SendInput(1, &amp;InputData, sizeof(InputData));
		  }
	}
return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1450573</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1450573</guid><dc:creator><![CDATA[Grabgewalt]]></dc:creator><pubDate>Wed, 06 Feb 2008 14:52:06 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Thu, 07 Feb 2008 00:01:16 GMT]]></title><description><![CDATA[<p>Damit ich mich ja gerade mit einem ähnlichem Problem konfrontiert sehe.</p>
<p>Soweit ich weiß - und hier gerade auch gelesen habe - unterbindet DirectInput die Annahme von WindowsMessages. Als Lösung wurde ein Hook vorgeschlagen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1450946</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1450946</guid><dc:creator><![CDATA[Slashi]]></dc:creator><pubDate>Thu, 07 Feb 2008 00:01:16 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Thu, 07 Feb 2008 00:54:32 GMT]]></title><description><![CDATA[<p>Vielleicht funktioniert ja bloss das mit GetPixel nicht so wie du meinst.<br />
Hast du schon probiert einfach immer, sagen wir in Abständen von 1-2 Sekunden, einen Tastendruck zu senden? Also so ala</p>
<pre><code class="language-cpp">while (1)
{
    Sleep(1000);
    SendKeyDown();
    Sleep(1000);
    SendKeyUp();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1450957</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1450957</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Thu, 07 Feb 2008 00:54:32 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Fri, 08 Feb 2008 10:59:28 GMT]]></title><description><![CDATA[<p>also daran liegts nich, wie gesagt, wenn ich in notepad bin oder so wo der benötigte pixelwert ja nich da is drückt er die 5.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1451825</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1451825</guid><dc:creator><![CDATA[Grabgewalt]]></dc:creator><pubDate>Fri, 08 Feb 2008 10:59:28 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Fri, 08 Feb 2008 18:10:39 GMT]]></title><description><![CDATA[<p>Lies dir das mal durch. Da solltest Du sehen wo dein Problem liegt.</p>
<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-48506-and-highlight-is-direct3d.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-48506-and-highlight-is-direct3d.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1452160</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1452160</guid><dc:creator><![CDATA[Slashi]]></dc:creator><pubDate>Fri, 08 Feb 2008 18:10:39 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Fri, 07 Mar 2008 20:26:41 GMT]]></title><description><![CDATA[<p>Ja, also ich habs immernoch nich hingekriegt... Hooks sind doch eigentlich eher zum abfangen von Tasten oder?<br />
Es muss doch irgend jemand ne Lösung wissen?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1470309</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1470309</guid><dc:creator><![CDATA[Grabgewalt]]></dc:creator><pubDate>Fri, 07 Mar 2008 20:26:41 GMT</pubDate></item><item><title><![CDATA[Reply to Taste an Spiel senden on Sun, 09 Mar 2008 15:12:43 GMT]]></title><description><![CDATA[<p><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="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1471000</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1471000</guid><dc:creator><![CDATA[Grabgewalt]]></dc:creator><pubDate>Sun, 09 Mar 2008 15:12:43 GMT</pubDate></item></channel></rss>