• 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
  • Sipping
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 6 of 6
    1. #1
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       

      Join Date
      Dec 2012
      Posts
      67
      Thanks (-->)
      2
      Thanks (<--)
      2

      DirectX Text in hwnd!

      How to Manual Map DLL
      Hello. Im getting a problem, im trying to do a text overlay in a hwnd, and it works, problem is that the background is getting black. Is there anyway to remove this ?

      here is the code.....

      Code:
      int RenderIt()
      {
      
          dx_Device->Clear(0, 0, D3DCLEAR_TARGET, 0, 1.0f, 0);
          dx_Device->BeginScene();
          DrawText("LALALALL HELLOW",100,100,255,0,255);
      
          dx_Device->EndScene();
          dx_Device->PresentEx( 0, 0, 0, 0, 0);
      }
      
      
      int DrawText(char* String, int x, int y, int r, int g, int b)
      {
          RECT Font;
          Font.bottom = 0;
          Font.left = x;
          Font.top = y;
          Font.right = 0;
          dx_Font->DrawTextA(0, String, strlen(String), &Font, DT_NOCLIP, D3DCOLOR_ARGB(255, r, g, b));
      
          return 0;
      }
      
      
      int D3DIniti(HWND hWnd)
      {
          if(FAILED(Direct3DCreate9Ex(D3D_SDK_VERSION, &dx_Object)))
              exit(1);
      
          dx_Param.BackBufferFormat    = D3DFMT_A8R8G8B8;
          dx_Param.hDeviceWindow        = hWnd;
          dx_Param.MultiSampleQuality = DEFAULT_QUALITY;
          dx_Param.SwapEffect            = D3DSWAPEFFECT_DISCARD;
          dx_Param.Windowed            = true;
      
          if(FAILED(dx_Object->CreateDeviceEx(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, D3DCREATE_HARDWARE_VERTEXPROCESSING, &dx_Param, 0, &dx_Device)))
              exit(1);
      
          D3DXCreateFont(dx_Device, 15, 0, 0, 0, false, DEFAULT_CHARSET, OUT_CHARACTER_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH, "Verdana", &dx_Font);
      
          return 0;
      }

    2. #2
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      brinkz's Avatar
      Join Date
      Sep 2012
      Posts
      213
      Thanks (-->)
      5
      Thanks (<--)
      74

    3. #3
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       

      Join Date
      Dec 2012
      Posts
      67
      Thanks (-->)
      2
      Thanks (<--)
      2
      Yes i have tried this.. but my compiler gives me an error about the MARGINS

      says its not a type...

    4. #4
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      brinkz's Avatar
      Join Date
      Sep 2012
      Posts
      213
      Thanks (-->)
      5
      Thanks (<--)
      74
      #include <dwmapi.h>
      #pragma comment ( lib, "dwmapi.lib" )

      MARGINS:
      Code:
      typedef struct _MARGINS
      {
          int cxLeftWidth;      // width of left border that retains its size
          int cxRightWidth;     // width of right border that retains its size
          int cyTopHeight;      // height of top border that retains its size
          int cyBottomHeight;   // height of bottom border that retains its size
      } MARGINS, *PMARGINS;
      Taken from Uxtheme.h

    5. #5
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       

      Join Date
      Dec 2012
      Posts
      67
      Thanks (-->)
      2
      Thanks (<--)
      2
      Quote Originally Posted by brinkz View Post
      #include <dwmapi.h>
      #pragma comment ( lib, "dwmapi.lib" )

      MARGINS:
      Code:
      typedef struct _MARGINS
      {
          int cxLeftWidth;      // width of left border that retains its size
          int cxRightWidth;     // width of right border that retains its size
          int cyTopHeight;      // height of top border that retains its size
          int cyBottomHeight;   // height of bottom border that retains its size
      } MARGINS, *PMARGINS;
      Taken from Uxtheme.h
      ive include dwmapi and the lib...thats why im so confused

    6. #6
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      brinkz's Avatar
      Join Date
      Sep 2012
      Posts
      213
      Thanks (-->)
      5
      Thanks (<--)
      74
      Cheat Engine Tutorials
      Then just use what I posted.

    Similar Game Hacker Threads

    1. [Help] DirectX Text draw
      By traderain in forum Hacking Help
      Replies: 4
      Last Post: 02-21-2016, 12:26 PM
    2. [Tutorial] Creating a HWND to Chrome
      By Kilo in forum Tutorials and Snippets
      Replies: 0
      Last Post: 11-04-2015, 02:25 AM
    3. [Help] Write simple text in DirectX
      By zoratz in forum Hacking Help
      Replies: 3
      Last Post: 01-10-2015, 09:49 PM
    4. Replies: 3
      Last Post: 10-22-2013, 03:05 PM
    5. [Help] Directx menu text
      By Chriko2502 in forum GH Tutorials Help
      Replies: 11
      Last Post: 08-27-2013, 01:24 AM

    Tags for this Thread