J Jetshot Unregistered / Unconfirmed GUEST, unregistred user! 2002-03-22 #1 怎样模拟键盘敲击????? 比如我点了一个button,我想让他模拟Ctrl+F9(只是举个例子),怎么办??
B bubble Unregistered / Unconfirmed GUEST, unregistred user! 2002-03-22 #2 keybd_event( VK_MENU, MapVirtualKey( VK_Control, 0 ), 0 , 0 ); keybd_event( VK_DOWN, MapVirtualKey( VK_F9, 0 ), 0 , 0 ); keybd_event( VK_DOWN, MapVirtualKey( VK_F9, 0 ), KEYEVENTF_KEYUP , 0 ); keybd_event( VK_MENU, MapVirtualKey( VK_Control, 0 ), KEYEVENTF_KEYUP , 0 );
keybd_event( VK_MENU, MapVirtualKey( VK_Control, 0 ), 0 , 0 ); keybd_event( VK_DOWN, MapVirtualKey( VK_F9, 0 ), 0 , 0 ); keybd_event( VK_DOWN, MapVirtualKey( VK_F9, 0 ), KEYEVENTF_KEYUP , 0 ); keybd_event( VK_MENU, MapVirtualKey( VK_Control, 0 ), KEYEVENTF_KEYUP , 0 );