Thread: CA Hook[C#]

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    FMLoon's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    41
    Reputation
    10
    Thanks
    16
    My Mood
    Amused

    Exclamation 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.
    Most recent:
    SOTW Entry:
    WingsOfLife is EWProd. is FMLoon

  2. #2
    hebrothers's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Posts
    155
    Reputation
    10
    Thanks
    33
    ooh....i only no some VB.....:P

  3. #3
    Sneaks's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Posts
    73
    Reputation
    10
    Thanks
    12
    This isnt a hook lol.

  4. #4
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,305
    Reputation
    170
    Thanks
    2,194
    My Mood
    Flirty
    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#.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  5. #5
    FMLoon's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    41
    Reputation
    10
    Thanks
    16
    My Mood
    Amused
    @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.
    Most recent:
    SOTW Entry:
    WingsOfLife is EWProd. is FMLoon

  6. #6
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,088
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    That looks very good. It looks like it may be missing a line or two (i am probably wrong though) Thanks this will help
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  7. #7
    Sneaks's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Posts
    73
    Reputation
    10
    Thanks
    12
    Hook? You mean attach? Using FindWindow? stupid noob is stupid

  8. #8
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,305
    Reputation
    170
    Thanks
    2,194
    My Mood
    Flirty
    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.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  9. #9
    iceman666999's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    on the stairway to heaven
    Posts
    265
    Reputation
    10
    Thanks
    66
    My Mood
    Breezy
    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 :/
    U gotta admit, that's funny...LOL


    Originally posted by FPS Russia
    "In Soviet Russia, pussy eats you!"

    PRESS THANKS, DON'T SAY IT

  10. #10
    User1's Avatar
    Join Date
    Jul 2009
    Gender
    female
    Location
    Above the influence
    Posts
    4,085
    Reputation
    61
    Thanks
    4,294,967,295
    My Mood
    Crappy
    C# is ment to be C built on .NET Framework.
    Any donations would help


    Quote Originally Posted by Bombsaway707

    HOLY SHIT ITS USER1
    Quote Originally Posted by Blood

    HOLY SHIT ITS USER1
    Quote Originally Posted by Alby-kun


    HOLY SHIT ITS USER1
    Quote Originally Posted by Ali

    HOLY SHIT ITS USER1
    Quote Originally Posted by CodeDemon
    HOLY SHIT ITS USER1
    Quote Originally Posted by Jussofresh View Post
    HOLY SHIT ITS USER1!
    [21:13] CoderNever: HOLY SHIT ITS USER1!
    Yes it is me... Yup Yup




  11. #11
    Sneaks's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Posts
    73
    Reputation
    10
    Thanks
    12
    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 -_-.

  12. #12
    Sneaks's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Posts
    73
    Reputation
    10
    Thanks
    12
    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.
    Last edited by Sneaks; 12-13-2009 at 04:12 PM.

  13. #13
    FMLoon's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    41
    Reputation
    10
    Thanks
    16
    My Mood
    Amused
    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?
    Most recent:
    SOTW Entry:
    WingsOfLife is EWProd. is FMLoon

  14. #14
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,088
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    Sneaks loon knows way more than you. I would put my life down on that
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  15. #15
    Sneaks's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Posts
    73
    Reputation
    10
    Thanks
    12
    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?

Page 1 of 2 12 LastLast

Similar Threads

  1. WR D3D Hook - =o - 03/22/07
    By Dave84311 in forum Hack/Release News
    Replies: 14
    Last Post: 10-06-2007, 10:59 AM
  2. tut How to hook tut 6
    By llvengancell in forum WarRock - International Hacks
    Replies: 1
    Last Post: 06-26-2007, 04:24 PM
  3. D3D hooking tutorial 5 i think
    By llvengancell in forum WarRock - International Hacks
    Replies: 7
    Last Post: 06-26-2007, 04:09 PM
  4. How can i hook the punkbuster?
    By TheRedEye in forum WarRock - International Hacks
    Replies: 5
    Last Post: 05-27-2007, 01:34 PM
  5. New Hacks Announced & Warrock DX Hook Update
    By Dave84311 in forum Hack/Release News
    Replies: 17
    Last Post: 03-02-2007, 04:54 PM