一段英文的TIPS:<br><br>发出一个Alt+Down 组合键 <br>问:Send [Alt]+[Down]?<br>答:<br>Use the keybd_event API function to fake keyboard events. Note that each<br>key down event needs a matching key up or you mess up the key state array.<br><br> keybd_event( VK_MENU, MapVirtualKey( VK_MENU, 0 ), 0 , 0 );<br> // Alt down<br> keybd_event( VK_DOWN, MapVirtualKey( VK_DOWN, 0 ), 0 , 0 );<br> // down arrow key down<br> keybd_event( VK_DOWN, MapVirtualKey( VK_DOWN, 0 ), KEYEVENTF_KEYUP , 0 );<br> // down arrow key up<br> keybd_event( VK_MENU, MapVirtualKey( VK_MENU, 0 ), KEYEVENTF_KEYUP , 0 );<br> // Alt key up<br><br>These key events will go to the window currently having the input focus.