C
changhui
Unregistered / Unconfirmed
GUEST, unregistred user!
我做了个热血江湖游戏的按键传送的程序,可是不好使,请大家帮忙看看<br>procedure TForm1.Timer1Timer(Sender: TObject);<br>var<br>hw:hwnd;<br>begin<br>hw := FindWindow(nil,'YB_OnlineClient');<br>if hw=0 then<br>exit<br>else<br>postmessage(hw,WM_KEYDOWN ,VK_F1,0);<br>postmessage(hw,WM_KEYUP ,VK_F1,0)<br>end;<br>后来有人提示说,热血江湖游戏屏蔽了postmessage函数,于是改成了<br>sendmessage(hw,WM_KEYDOWN,VK_F1,0);<br>sendmessage(hw,WM,KEYUP,VK_F1,0)<br>结果,还是不好使,哪位高手能指点一下吧