• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 9 of 9

    Thread: Cs:Go Main Cpp

    1. #1
      Newbie
      Learning to hack games!
       
      Coding
       
      Fleep#2's Avatar
      Join Date
      Feb 2015
      Posts
      22
      Thanks (-->)
      0
      Thanks (<--)
      6

      Cs:Go Main Cpp

      John Kittz
      #include "hMain.h"

      int Width = 1920;
      int Height = 1080;

      const MARGINS Margin = { 0, 0, Width, Height };

      char lWindowName[256] = "Broihon";
      HWND hWnd;

      char tWindowName[256] = "Counter-Strike: Global Offensive"; /* tWindowName ? Target Window Name */
      HWND tWnd;
      RECT tSize;

      MSG Message;

      LRESULT CALLBACK WinProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lParam)
      {
      switch (Message)
      {
      case WM_PAINT:
      Render();
      break;

      case WM_CREATE:
      DwmExtendFrameIntoClientArea(hWnd, &Margin);
      break;

      case WM_DESTROY:
      PostQuitMessage(1);
      return 0;

      default:
      return DefWindowProc(hWnd, Message, wParam, lParam);
      break;
      }
      return 0;
      }

      int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hSecInstance, LPSTR nCmdLine, INT nCmdShow)
      {

      CreateThread(0, 0, (LPTHREAD_START_ROUTINE)SetWindowToTarget, 0, 0, 0);

      WNDCLASSEX wClass;
      wClass.cbClsExtra = NULL;
      wClass.cbSize = sizeof(WNDCLASSEX);
      wClass.cbWndExtra = NULL;
      wClass.hbrBackground = (HBRUSH)CreateSolidBrush(RGB(0, 0, 0));
      wClass.hCursor = LoadCursor(0, IDC_ARROW);
      wClass.hIcon = LoadIcon(0, IDI_APPLICATION);
      wClass.hIconSm = LoadIcon(0, IDI_APPLICATION);
      wClass.hInstance = hInstance;
      wClass.lpfnWndProc = WinProc;
      wClass.lpszClassName = lWindowName;
      wClass.lpszMenuName = lWindowName;
      wClass.style = CS_VREDRAW | CS_HREDRAW;

      if(!RegisterClassEx(&wClass))
      exit(1);

      tWnd = FindWindow(0, tWindowName);
      if (tWnd)
      {
      GetWindowRect(tWnd, &tSize);
      Width = tSize.right - tSize.left;
      Height = tSize.bottom - tSize.top;
      hWnd = CreateWindowEx(WS_EX_TOPMOST | WS_EX_TRANSPARENT | WS_EX_LAYERED, lWindowName, lWindowName, WS_POPUP, 1, 1, Width, Height, 0, 0, 0, 0);
      SetLayeredWindowAttributes(hWnd, 0, 1.0f, LWA_ALPHA);
      SetLayeredWindowAttributes(hWnd, 0, RGB(0, 0, 0), LWA_COLORKEY);
      ShowWindow( hWnd, SW_SHOW);
      }

      DirectXInit(hWnd);

      for (;;)
      {
      if(PeekMessage(&Message, hWnd, 0, 0, PM_REMOVE))
      {
      DispatchMessage(&Message);
      TranslateMessage(&Message);
      }
      Sleep(1);
      }
      return 0;
      }

      void SetWindowToTarget()
      {
      while(true)
      {
      tWnd = FindWindow(0, tWindowName);
      if (tWnd)
      {
      GetWindowRect(tWnd, &tSize);
      Width = tSize.right - tSize.left;
      Height = tSize.bottom - tSize.top;
      DWORD dwStyle = GetWindowLong(tWnd, GWL_STYLE);
      if(dwStyle & WS_BORDER)
      {
      tSize.top += 23;
      Height -= 23;
      }
      MoveWindow(hWnd, tSize.left, tSize.top, Width, Height, true);
      }
      else
      {
      char ErrorMsg[125];
      sprintf(ErrorMsg, "Make sure %s is running!", tWindowName);
      MessageBox(0, ErrorMsg, "Error - Cannot find the game!", MB_OK | MB_ICONERROR);
      exit(1);
      }
      Sleep(100);
      }
      }

    2. #2
      Respected Hacker
      PRAISE THE SUUUUUUUUUUUUUUN
       
      Coding
       
      Solaire's Avatar
      Join Date
      Dec 2013
      Location
      Undead Burg
      Posts
      1,096
      Thanks (-->)
      364
      Thanks (<--)
      584
      Thanks for sharing, though would you mind expanding upon your post. (Such as what it is, what it does, etc.)
      Cs:Go Main Cpp

      [02-02, 21:50] AnomanderRake: jeans, skinny jeans, MC hammer pants, yoga pants & hot pants
      [02-02, 21:50] AnomanderRake: Only one of them isn't gay
      [02-02, 21:51] Krampus: MC hammer pants, duh
      [02-02, 21:54] Krampus: Actually, trick pants. All questions are gay, duh
      [02-02, 21:56] AnomanderRake: aight now I know you're hitting the bong :P
      [02-02, 21:58] Krampus: Trick bong, there is no spoon

    3. #3
      Hacker
      shell toes yes
       
      Lagging
       
      squeenie's Avatar
      Join Date
      Mar 2013
      Posts
      717
      Thanks (-->)
      599
      Thanks (<--)
      221
      Hard to tell on a phone but I think it's an overlay?

    4. Thanks Solaire thanked for this post
    5. #4
      Jr.Hacker
      /usr/bin/chattr +i /etc/shadow
       
      At Work
       
      Obsta's Avatar
      Join Date
      Jan 2014
      Posts
      401
      Thanks (-->)
      38
      Thanks (<--)
      156
      Shit nigga, i don't know where you stole that from, but its actually useful, unlike half the other crap you post here.

      That is... Assuming it actually works, i haven't compiled it yet.
      Selling premium gold subscription LOIC booters $42.0/minute
      Cs:Go Main Cpp
      Path of Exile - Camera Patcher + AutoPotions
      CSGO - Public ESP/Aimbot/Trigger/Misc

    6. Thanks keto, Syntax Error, Ronbledore thanked for this post
    7. #5
      Newbie
      Learning to hack games!
       
      Coding
       
      Fleep#2's Avatar
      Join Date
      Feb 2015
      Posts
      22
      Thanks (-->)
      0
      Thanks (<--)
      6
      Thank you krampus Im working.

    8. #6
      Global Moderator
      give me my colorz back
      FeelsBadMan
       
      Coding
       
      till0sch's Avatar
      Join Date
      Oct 2012
      Location
      Germany.
      Posts
      1,168
      Thanks (-->)
      179
      Thanks (<--)
      340
      Quote Originally Posted by Obsta View Post
      Shit nigga, i don't know where you stole that from, but its actually useful, unlike half the other crap you post here.

      That is... Assuming it actually works, i haven't compiled it yet.
      He just makes requests who nobody can understand, I guess this is his first release ever, however it's just C&P

    9. Thanks squeenie thanked for this post
    10. #7
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      karmaa's Avatar
      Join Date
      Feb 2015
      Posts
      5
      Thanks (-->)
      0
      Thanks (<--)
      0
      @Broihon

      dont quit chatzy

    11. #8
      Jr.Hacker
      /usr/bin/chattr +i /etc/shadow
       
      At Work
       
      Obsta's Avatar
      Join Date
      Jan 2014
      Posts
      401
      Thanks (-->)
      38
      Thanks (<--)
      156
      Quote Originally Posted by till0sch97 View Post
      He just makes requests who nobody can understand, I guess this is his first release ever, however it's just C&P
      No i think you're wrong

      char lWindowName[256] = "Broihon";

      Clearly shows he is the owner.
      Selling premium gold subscription LOIC booters $42.0/minute
      Cs:Go Main Cpp
      Path of Exile - Camera Patcher + AutoPotions
      CSGO - Public ESP/Aimbot/Trigger/Misc

    12. Thanks Ronbledore, till0sch, TastyHorror, keto, Syntax Error thanked for this post
    13. #9
      Coder
      Creating UE3 x86/x64 tut
       
      Coding
       
      TastyHorror's Avatar
      Join Date
      Oct 2012
      Location
      Canada
      Posts
      184
      Thanks (-->)
      54
      Thanks (<--)
      82
      Cheats'n'Trainers
      Thanks for sharing this unique src.
      Quote Originally Posted by squeenie View Post
      And just like Jesus did on easter Monday, he returns!

    Similar Game Hacker Threads

    1. [Community] Have you seen the "Most users ever online" on the main page?
      By Spamer in forum GH Discussion
      Replies: 7
      Last Post: 07-18-2014, 02:25 PM
    2. How to get the main address of a programm
      By AlexR in forum Visual Basic
      Replies: 7
      Last Post: 04-23-2013, 11:46 AM

    Tags for this Thread