Results 1 to 5 of 5
  1. #1
    Xlilzoosk8rX's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    the-ville, PA
    Posts
    358
    Reputation
    24
    Thanks
    53

    Text and drawing [] to and from file

    text to file:

    Code:
    ILE *fhandle = fopen("FILEDIRECTORY\\YOURFILE.txt", "w");
            //Log some addies.
            DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
            fprintf(fhandle, "D3D Device: %X\n", FindPattern((DWORD)GetModuleHandleA("d3d9.dll"), 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "xx????xx????xx"));
            fprintf(fhandle, "Player Index: %X\n", FindPattern(CShell, 0x128000, (PBYTE)"\x8B\x41\x04\x85\xC0\x74\x18\x8B\x54\x24\x04\xEB\x03\x8D\x49\x00\x39\x50\x04\x74\x1A\x8B\x80", "xxxxxxxxxxxxxxxxxxxxxxx"));
            fprintf(fhandle, "Super Bullets: %X\n", FindPattern(CShell, 0x128000, (PBYTE)"\x0F\x94\xC0\x5E", "xxxx"));
            //or your own text
            fprintf(fhandle, "TEXT TO BE PRINTED" );        
            fclose(fhandle);
            //TerminateProcess(GetCurrentProcess(),0); closes CA,
    Draw from file:

    Global:
    Code:
    using namespace std;
    Code:
    void DrawFileText( LPDIRECT3DDEVICE9 pDevice, float x, float y, const char *FileName )
    {
        if ( !pDevice )
            return;
    
    
        char txt[255];
        std::ifstream inFile(FileName);
        while ( !inFile )
        {
            DrawPrint( x, y, Black, "ERROR!" );
        }
        inFile.getline( txt, 255 );
        std::cout<<txt;
        DrawPrint( x, y, Black, txt );
    }
    credits to dimensions for the draw from file

  2. #2
    .::SCHiM::.'s Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    733
    Reputation
    180
    Thanks
    833
    My Mood
    Twisted
    seriously since when do you guys think that piecing together 3 functions with some sloppy glue and releasing it is a valuable contribution to the community (if you can speak of that)?

    I mean, every wanker even those new to C++ can do this.

    I'm SCHiM

    Morals derive from the instinct to survive. Moral behavior is survival behavior above the individual level.

    Polymorphic engine
    Interprocess callback class
    SIN
    Infinite-precision arithmetic
    Hooking dynamic linkage
    (sloppy)Kernel mode Disassembler!!!

    Semi debugger




  3. #3
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,404
    My Mood
    In Love
    And why exactly is std::cout<<txt; there?
    This isn't a console app
    No I do not make game hacks anymore, please stop asking.


    Been MPGH Minion: 6 July 2011 - 1 August 2012

  4. #4
    the grim reaper's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Ca Na Section
    Posts
    166
    Reputation
    19
    Thanks
    48
    My Mood
    Amazed
    lol i can do this easy and im pretty noobish at c++
    @.::SCHiM::. is right
    Respect List:
    [MPGH]Dave84311
    freedompeace
    _FK127_
    Reimy
    Speedforyou
    wolffang0000



    If i helped at all please press the thanks button

  5. #5
    matypatty's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    863
    Reputation
    156
    Thanks
    2,689
    My Mood
    Amused
    this is the most retarded and stupid way to do this -rep.

  6. The Following 2 Users Say Thank You to matypatty For This Useful Post:

    markoj (08-28-2011),OBrozz (08-28-2011)

Similar Threads

  1. Battlefield 2 and Battlefield 2142 Multiple Arbitrary file upload
    By cruizrisner in forum Battlefield Hacks & Cheats
    Replies: 12
    Last Post: 08-22-2010, 10:00 AM
  2. how to use iwnet emulator and legit steam without copying files everytime
    By wardude in forum Call of Duty Modern Warfare 2 Private Servers
    Replies: 21
    Last Post: 06-16-2010, 02:57 AM
  3. how do u change a *** and inject into the rez file?
    By igotfish1995 in forum Combat Arms Mod Discussion
    Replies: 14
    Last Post: 03-31-2010, 11:33 AM
  4. High, MId and Low Default. PICS Rules file....
    By caleeb12 in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 08-21-2009, 04:01 PM