初始的参数使用GetDesktopWindow和5更好
应该把GetCurrentThreadId改为GetCurrentProcessId…
你这样获得窗口,任何干涉都会出现意外的…而且你的while既然写成顺序搜索了…那还不如将while写成if(激活的窗口)的ID是指定的进程ID?如果不是return MessageBox(0,"can't find the window","",MB_OK)算了,否则 ...
碧绿de奶茶 发表于 2009-9-1 12:19
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |