为何我的WM_CHAR不行??
Posted on 八月 16rd, 2007 由 admin
请问我在sendmessage时的最后一项参数如何埴?
代码如下:
int i = 0;
int j = 0;
hwnd hcurrwnd = null;
showwindow(sw_minimize);
::sleep(500);
hcurrwnd = ::getforegroundwindow();
char inputtext[]="igdfgasdfsafasfsfsadf";
while(inputtext[i])
{
::sendmessage(hcurrwnd,wm_char,inputtext[i],0);
i++;
}
推荐阅读


讨论区