|
-
November 11th, 2005, 05:09 AM
#22
Re: Help! How to send a CTRL+X key to another window?
Hi All:
I hope this can help
Try this: (first of all you need the HWND of the window wich will receive the message, in this case ventana)
HWND ventana;
.....
::BringWindowToTop(ventana); //bring ventana to TOP
// simulate Alt + return
keybd_event(VK_MENU,
0,
0,
0);
keybd_event(VK_RETURN,
0,
0,
0);
keybd_event(VK_RETURN,
0,
KEYEVENTF_KEYUP,
0);
keybd_event(VK_MENU,
0,
KEYEVENTF_KEYUP,
0);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|