I am trying to send the SHIFT key to another application, and then PostMessage() my characters so they show up in their shift key states.
The target process must run in the background, so setting the focus to it is not possible. Meaning SetForegroundWindow(), GetForegroundWindow(), SentInput(), keybd_event(), SendKeys() will not work.
I have seen some examples of SetKeyboardState() and I have used AttachThreadInput() to attach my thread to the thread of the target process, then SetKeyboardState() to press the SHIFT key, then detach my thread.
The target process still does not recognise my the SHIFT key being pressed.
[C#]PostMessage problem. 01/16/2014 - .NET Languages - 6 Replies Ich bin gerade dabei einen kleinen Bot für ein Spiel (DirectX App) zu schreiben.
public static extern int PostMessage(IntPtr hwnd, uint wMsg, int wParam, int lParam);
static extern uint GetLastError();
public static Process processes = Process.GetProcessesByName("game.bin");
C# - SendMessage/PostMessage 12/21/2013 - CO2 Programming - 3 Replies Hello, I have recently started to toy around with the idea of sending a mouse click, or other events, to a conquer client that is minimized, or just not in focus. I have been using Spy++ to help along in all the messages the client receives and what not. I have got it kind of working and was wondering if anyone here could give me a hand.
//WM_PARENTNOTIFY-SendMessage-ParentWindow
bool seven = MouseClickHandler.SendMessage(new IntPtr(0x004F04CA), (int)0x0210, new IntPtr(0x00000201), new...
PostMessage / SendMessage (C#) 06/23/2013 - CO2 Programming - 2 Replies I am trying to send key presses & mouse presses to the conquer window using PostMessage in C# but Conquer doesn't seem to respond to anything I send it. I am able to send key presses correctly to windows calculator though.
Just wondering if anyone has had success using PostMessage / SendMessage and would be kind enough to share.
Is there any other way to send key presses / mouse clicks while the conquer window is minimized?
Thanks for any help :)
[Help] Postmessage 04/29/2011 - AutoIt - 15 Replies Hallo,
ich habe seit kurzem gelesen, dass es sowas wie Postmessage gibt und wollte mich mal ein bisschen damit befassen.
Leider fand ich nichts hilfreiches(für mich zmd).
Kann mir wer da helfen? Hab die Postmessage UDF auch schon....
MfG Ludder231