ExclamationCA Hook[C#]

Posts 115 of 20 · Page 1 of 2
CA Hook[C#]
Is is the combat arms hook I use so that way when the process is out of view the AFK Bot or what not can still do its job.

Code:
    {

        [DllImport("user32.dll", SetLastError = true)]
        static extern IntPtr FindWindow(
            string lpClassName,
            string lpWindowName);

        IntPtr hWnd = FindWindow(
            null,
            "*name*");

        [return: MarshalAs(UnmanagedType.Bool)]
        [DllImport("user32.dll", SetLastError = true)]
        static extern bool PostMessage(
        IntPtr hWnd,
        uint Msg,
        int wParam,
        int lParam);
        const int WM_KEYDOWN = 0x100;

        public Form1()
        {
            InitializeComponent();
        }

private void Form1_Load(object sender, EventArgs e)
        {
            FindWindow(null, "*name*");
        }
This needs some editing any c# noob can do it, i just dont want this to be a copy and paste thing.
ooh....i only no some VB.....:P
This isnt a hook lol.
You should post some time in the C/C++ section. I would like to have a chance to look at some C# now and then. And a lot of people are interested in learning C#.
@Sneeks-This hooks to the process...thats what i ment get over it.
@why06 I will think about that, I have been coding c# since the summer so i might post some sources/lessons there.
That looks very good. It looks like it may be missing a line or two (i am probably wrong though) Thanks this will help
Hook? You mean attach? Using FindWindow? stupid noob is stupid
Quote Originally Posted by Sneaks View Post
Hook? You mean attach? Using FindWindow? stupid noob is stupid
Well you know I mean technically your right it isn't a Hook, but cut him some slack. Dude is just trying to help out.
Quote Originally Posted by Sneaks View Post
Hook? You mean attach? Using FindWindow? stupid noob is stupid
Wow, rage...anyways i am learning c++ at the moment too..i hear vb is easier though :/
C# is ment to be C built on .NET Framework.
All hes doing is adding 2 apis then showing 1 line of using it. and he doesnt even put how to use it. "any C# noob can use this". if you were a noob, you wouldnt know how to use APi's and how to get the fuckin window handle of a damn window. And this is also coming from the guy who bragged about his trainer working for all versions, when all it used was bot functions -_-.
Quote Originally Posted by Sneaks View Post
All hes doing is adding 2 apis then showing 1 line of using it. and he doesnt even put how to use it. "any C# noob can use this". if you were a noob, you wouldnt know how to use APi's and how to get the fuckin window handle of a damn window. And this is also coming from the guy who bragged about his trainer working for all versions, when all it used was bot functions -_-.
Shut the fuck up sneak and get the fuck out of this forum u fuking moron. This is to help people and I am not gonna give some fucking choob step by step instructions on how to use this. Also all that needed to be done was fucking add the name of the window in the name spot. Also I never fucking bragged about my TRAINER working for all versions, I put it in the title of the post. So go back to fucking ****** with all the other fucking cunts that you work with kay?
And you've alrighty defined hWnd, why the fuck would you need to FindWindow again?


And im 99% Sure you used my MS Trainer source for this, because I made a mistake and pressed enter when entering IntPt hWnd = FindWindow("game", null) and I kept it that way cuz I though it'd look cool.
Sneaks loon knows way more than you. I would put my life down on that
Alright. What does he know that I dont? I know the Definition of a hook? I built the trainer that he bases all his hacking programs on?
Posts 115 of 20 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?