W
washhxt
Unregistered / Unconfirmed
GUEST, unregistred user!
我想在程序中控制另外一个程序,就象在该程序中用键盘,鼠标控制,但是不成功,<br>不知道lparam该如何设置。<br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br> wparam,lparam:integer;<br> hwnd1:HWND;<br>begin<br> wparam:=VK_F1;<br> lparam:=0;<br> hwnd1:=FindWindow(nil,PCHAR('UltraEdit-32 - [Edit1]'));<br>sendmessage(hwnd1,WM_KEYDOWN,wparam,lparam);<br>end;<br><br><br>