- 论坛徽章:
- 0
|
void main()
{
PROCESS_INFORMATION pi;
STARTUPINFO si;
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(STARTUPINFO);
si.dwFlags = STARTF_USESHOWWINDOW;
si.wShowWindow = SW_SHOW;
TCHAR tszWindows[256];
GetSystemDirectory(tszWindows, 256);
char strExe[256];
sprintf(strExe, "%c:\\Program Files\\Internet Explorer\\IEXPLORE.EXE", tszWindows[0]);
if( CreateProcess(strExe, "open http://127.0.0.1/1.htm", NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi) )
{
Sleep(2000);
HWND hwd = FindWindow("IEFrame","Demo - Microsoft Internet Explorer");
if(hwd !=0 ) {
//MessageBox(0,"Find","aaa",MB_OK); //这一部还是正常的.
SendMessage(hwd,WM_MOUSEMOVE,16,131);
}
} |
为什么SendMessage(hwd,WM_MOUSEMOVE,16,131); 还是不能移动鼠标 .. , |
|