Functional but not very elegant - this sends a Ctrl+Enter to the console window: #include #include int _tmain(int argc, _TCHAR* argv[]) { keybd_event( VK_MENU, MapVirtualKey( VK_MENU, 0 ), 0, 0 ); keybd_event( VK_RETURN, MapVirtualKey( VK_RETURN, 0 ), 0, 0 ); keybd_event( VK_RETURN, MapVirtualKey( VK_RETURN, 0 ), KEYEVENTF_KEYUP, 0 ); keybd_event( VK_MENU, MapVirtualKey( VK_MENU, 0 ), KEYEVENTF_KEYUP, 0 ); getch(); return 0; } Displaced Aussie. Currently in London, normally living in Melbourne.