想用c#做个"假"外挂,是否可以给点建议?就是获取游戏窗口,在那个窗口内自动绕圈点击。要求窗口最小化之后也能打。希望高手给点建议。谢谢

解决方案 »

  1.   

    api
    FindWindow
    FindWindowEx
    SendMessage
    PostMessage 
      

  2.   

    FindWindow 找到游戏窗口SendMessage  
    PostMessage 向目标窗口发送鼠标或者键盘消息函数在c#中的定义
    [DllImport("user32.dll", EntryPoint="FindWindow")]
    public static extern int FindWindow (
    string lpClassName,
    string lpWindowName
    );[DllImport("user32.dll", EntryPoint="SendMessage")]
    public static extern int SendMessage (
    int hwnd,
    int wMsg,
    int wParam,
    ref int lParam
    );[DllImport("user32.dll", EntryPoint="PostMessage")]
    public static extern int PostMessage (
    int hwnd,
    int wMsg,
    int wParam,
    int lParam
    );具体应用可以函数运用Baidu,Google一下。不过很多游戏为了反外挂都会过滤PostMessage, SendMessage 发送的消息
      

  3.   

    最好是程序框架.
    可以用UML描述.