首页 > 代码库 > PostMessage,模拟键盘输入

PostMessage,模拟键盘输入

 for i := 0 to length(tel) do
           begin
             //SendMessage(cHwnd,WM_KEYDOWN,Integer(tel[i]),0);
              PostMessage(cHwnd,WM_KEYDOWN,Integer(tel[i]),0);
              sleep(80);
             end;

PostMessage,模拟键盘输入