Quote:
Originally Posted by b0ne
Yah .. Ive been trying with those two.. changing their params and stuff like that but still nothing...
Im using the GetForegroundWindow() function to get a hwnd and send the message to that hwnd...
but thanks for answering 
|
Then you making something wrong.
You get the window handle with FindWindow().
For sending keys use PorstMessage and for sending mouseclicks use SendMessage.
It's the best you make a few functions. Like MouseClick() and SendKey() or something. Then you must only call MouseClick(x,y) with the coords.