I have the handle names of a edit box which is a child of a combo box. these two controls are in another application.
using:
I can place text in the edit box. Now i need to send the enter key message to the edit box, I have tried:Code:SendMessage(txtBox, WM_SETTEXT, NULL, (LPARAM)(LPCTSTR)response);
Code:SendMessage(txtBox, WM_KEYDOWN, VK_RETURN, 0); SendMessage(txtBox, WM_KEYUP, VK_RETURN, 0);Code:PostMessage(txtBox, WM_CHAR, VK_RETURN, 0);Code:SendMessage(txtBox, WM_CHAR, VK_RETURN, 0);Code:PostMessage(txtBox, WM_KEYDOWN, VK_RETURN, 0); PostMessage(txtBox, WM_KEYUP, VK_RETURN, 0);None of which worked. I use Borland C++ 3, Win 2000Code:keybd_event(VK_RETURN, 0,0,0); keybd_event(13, 0,KEYEVENTF_KEYUP,0);
Any ideas?
thanks



LinkBack URL
About LinkBacks


