J
jay_first
Unregistered / Unconfirmed
GUEST, unregistred user!
我在中文win98下写如下命令:<br>keybd_event( VK_MENU, MapVirtualKey( VK_MENU, 0 ), 0 , 0 ); // Alt down <br>keybd_event( ord('E'), MapVirtualKey( ord('E'), 0 ), 0 , 0 ); // down E key down <br>keybd_event( ord('K'), MapVirtualKey( ord('K'), 0 ), 0 , 0 ); // down K key down <br>keybd_event( ord('K'), MapVirtualKey( ord('K'), 0 ), KEYEVENTF_KEYUP , 0 ); // down K key up <br>keybd_event( ord('E'), MapVirtualKey( ord('E'), 0 ), KEYEVENTF_KEYUP , 0 ); // down E key up <br>keybd_event( VK_MENU, MapVirtualKey( VK_MENU, 0 ), KEYEVENTF_KEYUP , 0 ); // Alt key up <br>它应在一激活的窗口ALT+E执行一菜单命令,然后再执行ALT+K打开一小窗口。但结果只是执行菜单命令ALT+E便停止,延时也不行,而在西文win95下则无问题。哪位专家可告诉我为什么? <br>谢谢!