主题:可以确定找对了窗体的handle,可是为什么如下代码发送组合键会没有反应呢?
SENDMessage(tmph,WM_SYSKEYDOWN,VK_control,0);
SENDMessage(tmph,WM_SYSKEYDOWN,ord('A'),0);
Sleep(800);
SENDMessage(tmph,WM_SYSKEYUP,ORD('A'),0);
SENDMessage(tmph,WM_SYSKEYUP,VK_CONTROL,0);
手工在窗体上按ctrl+a是有反应,可是为什么用这个组合键不行呢?
SENDMessage(tmph,WM_SYSKEYDOWN,ord('A'),0);
Sleep(800);
SENDMessage(tmph,WM_SYSKEYUP,ORD('A'),0);
SENDMessage(tmph,WM_SYSKEYUP,VK_CONTROL,0);
手工在窗体上按ctrl+a是有反应,可是为什么用这个组合键不行呢?