文件名称:编程笔记本SendMessage
文件大小:3KB
文件格式:TXT
更新时间:2013-10-05 07:50:45
编程SendMessage
#include "windows.h" #include "stdio.h" void main() { ShellExecute(0,"OPEN","C:\\Program Files\\China Mobile\\Fetion\\Fetion.exe",0,0,SW_SHOW); ShellExecute(0,"OPEN","D:\\Program Files\\China Mobile\\Fetion\\Fetion.exe",0,0,SW_SHOW); Sleep(1000); HWND hwnd1=FindWindow(0,"Fetion 2010");//Fetion 2010 printf("%x\n",hwnd1); if(hwnd1==0) { MessageBox(0,TEXT("打开位置不正确"),TEXT("hello"),MB_OK); return; } //SendMessage(hwnd1,WM_SETTEXT,0,(LPARAM)"123456789");//输入帐号 HWND hwnd2=FindWindowEx(h