第1个回答 推荐于2016-01-15
#include <windows.h>
int main(void)
{
char s[100] = "C:\\progam files\\tencent\\qq\\bin\\qq.exe" ;
ShellExecute(NULL,TEXT("open"),TEXT("C:\\Program Files\\Tencent\\QQ\\Bin\\QQ.exe"),NULL,NULL,SW_SHOW);
Sleep(3000);
HWND hWnd = FindWindow(NULL,TEXT("QQ2010"));
HWND hWndc = ::GetWindow(hWnd,GW_CHILD);
SendMessage(hWndc,WM_SYSKEYDOWN,VK_RETURN,0);
return 0;
}本回答被提问者采纳