为什么用按键精灵可以在屏弊外挂(模拟键盘)的游戏里,实现它的功能,而我们用sendkeys和keybd_event的方法没有办法实现。那位高手出来解释一下。谢谢帮帮我们吧!

解决方案 »

  1.   

    sendkey也能用来实现按键么?显然不够。
    用钩子
      

  2.   

    不用API的话,那我们用什么啊,真的很奇怪,按键精灵他是怎么实现的呢,我想他也应该是用API的吧
      

  3.   

    非常郁闷~  这几天我在发愁  之前给传奇写的键盘宏 , 现在估计是被屏蔽了...  但是按键精灵仍然可以使用...
    我就怀疑 按键精灵不是简简单单得加了api钩子就完事了.
      

  4.   

    see these Win32 API1. SetWindowsHookEx  //hook the keyboard and mouse message
    2. GetCursor         //get the position of the mouse
    3. SetCursor         //set the position of the mouse
    4. mouse_event       //perform mouse event
    5. SendInput          //perform keyboard eventthat's enough...
      

  5.   

    sorry for my mistake...should be2. GetCursorPos
    3. SetCursorPos
      

  6.   

    TO shrinerain
         不知道游戏是屏蔽了 KB_EVNET 或是SENDKEYS, 还是屏蔽了setwindowshookEx . 反正自己用这种方法写的程序 得不到游戏中的键盘输入消息.....(可恨的是...游戏在最近一次更新才屏蔽的,之前都可以用) 上面的都变得不可用. 请教....
      

  7.   

    oh?then you can use system driver to hook everything...do as 3721...