1. 程式人生 > >PostMessage,模擬鍵盤輸入

PostMessage,模擬鍵盤輸入

begin length mes 模擬鍵盤 ssa int tel send nbsp

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,模擬鍵盤輸入