W
wuyi
Unregistered / Unconfirmed
GUEST, unregistred user!
我的程序启动了另一个程序,我想在程序中模拟键盘输入alt,E,这些与菜单
控制有关的按键, 但一直试不好, 请各位帮帮忙!
sendMessage(hCurrentWindow, WM_SYSKEYDOWN, VK_MENU, $20380001);
sendMessage(hCurrentWindow, WM_SYSKEYUP, VK_MENU, $20380001);
sendMessage(hCurrentWindow, WM_KEYDOWN, $45,$10120001 );
sendMessage(hCurrentWindow, WM_KEYUP, $45, $d0120001);
现在前面两行的代码是起作用的,后面的两行不起作用,不知什么原因?
控制有关的按键, 但一直试不好, 请各位帮帮忙!
sendMessage(hCurrentWindow, WM_SYSKEYDOWN, VK_MENU, $20380001);
sendMessage(hCurrentWindow, WM_SYSKEYUP, VK_MENU, $20380001);
sendMessage(hCurrentWindow, WM_KEYDOWN, $45,$10120001 );
sendMessage(hCurrentWindow, WM_KEYUP, $45, $d0120001);
现在前面两行的代码是起作用的,后面的两行不起作用,不知什么原因?