没有吧?好像这是模拟按键的问题,很容易呀!“=”的键值是187,将下面的mykey变为187就行了。<br>然后使用<br>keybd_event( mykey , MapVirtualKey( mykey , 0 ), 0 , 0 );<br>keybd_event( mykey , MapVirtualKey( mykey , 0 ), KEYEVENTF_KEYUP , 0 );<br>而需要发送“_”需要首先按下shift键然后发送“-”键值就行(键值是109)<br>具体就是<br>keybd_event( VK_shift, MapVirtualKey( VK_shift, 0 ), 0 , 0 );<br>keybd_event( mykey , MapVirtualKey( mykey , 0 ), 0 , 0 );<br>keybd_event( mykey , MapVirtualKey( mykey , 0 ), KEYEVENTF_KEYUP , 0 );<br>keybd_event( VK_shift, MapVirtualKey(VK_shift, 0 ), KEYEVENTF_KEYUP , 0 );