我想发送Ctrl+F9给一个后台程序(已知该程序句柄)该如何写?在线等 ( 积分: 50 )

  • 主题发起人 主题发起人 rocyang
  • 开始时间 开始时间
R

rocyang

Unregistered / Unconfirmed
GUEST, unregistred user!
&nbsp;SendMessage(sHwnd,WM_KEYDOWN,VK_LCONTROL,0);<br> &nbsp;SendMessage(sHwnd,WM_KEYDOWN,VK_F9,0);<br><br>或者<br><br> &nbsp;SendMessage(sHwnd,WM_SYSKEYDOWN,VK_LCONTROL,0);<br> &nbsp;SendMessage(sHwnd,WM_KEYDOWN,VK_F9,0);<br><br>都不对.<br>谢谢各位了!
 
&nbsp;SendMessage(sHwnd,WM_KEYDOWN,VK_LCONTROL,0);<br> &nbsp;SendMessage(sHwnd,WM_KEYDOWN,VK_F9,0);<br><br>或者<br><br> &nbsp;SendMessage(sHwnd,WM_SYSKEYDOWN,VK_LCONTROL,0);<br> &nbsp;SendMessage(sHwnd,WM_KEYDOWN,VK_F9,0);<br><br>都不对.<br>谢谢各位了!
 
这个只是发给窗体的,发消息有很多函数<br>postmessage<br>postthreadmessage<br>BroadcastSystemMessage<br>不知你要将消息发给哪种<br><br>
 
后退
顶部