How do i simulate keypress in C++ Builder ?
SendMessage or PostMessage ?
A Example would be really nice, im new to this all :o
SendMessage or PostMessage ?
A Example would be really nice, im new to this all :o
What you mean withQuote:
PostMessage(hWnd, WM_KEYDOWN, VK_ESCAPE, MapVirtualKey(VK_ESCAPE, 0));
PostMessage(hWnd, WM_KEYUP, VK_ESCAPE, MapVirtualKey(VK_ESCAPE, 0));
Is there a better/safer Way to send Keys ?Quote:
Both suck
It is by far the quickest method to create really specialist small tools though when you haven't dug through all the code yet and don't intend on doing that :pQuote:
Don't send keys at all would be the better way :) No unfreezing, no chat problems... etc.