SendKey
-
Hi Anyone have a example of SendKey. Peter and I are working on my project and I need some help. I want to sendkey to a window I have a handle for. Thanks to Peter I have enumed all the top level windows, now I need help with SendKey. Will this project ever end? Best Wishes, ez_way
-
Hi Anyone have a example of SendKey. Peter and I are working on my project and I need some help. I want to sendkey to a window I have a handle for. Thanks to Peter I have enumed all the top level windows, now I need help with SendKey. Will this project ever end? Best Wishes, ez_way
-
It depends on what kind of keys you want to send... This is just a sample: // suppose your window handle is hwnd, you want to send key "A" to it. ::PostMessage(hwnd, WM_CHAR, WPARAM('A'), LPARAM(0));
Thank you, very helpful! I am sending ::PostMessage(hwnd, WM_CHAR, WPARAM('^'), LPARAM(M)); Ctrl+M Best Wishes very good~! Best Wishes, ez_way