Thread: HotKey Hack

Results 1 to 15 of 15
  1. #1
    sugar04's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Posts
    479
    Reputation
    28
    Thanks
    34
    My Mood
    Psychedelic

    Exclamation HotKey Hack

    Im Having troubles with my Hotkey hack can you guy's Help me please?

    #include <windows.h>
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll" ) != NULL
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL
    && GetModuleHandleA( "CShell.dll" ) != NULL )
    return true;
    return false;
    }
    void PushToConsole(const char* Command) {
    DWORD CNADDIE = 0x007d9200;
    void* Send = ( void* )*( DWORD* )(CNADDIE);
    __asm
    {
    push Command;
    call Send;
    add esp, -3-1+2+6;
    }
    }
    void main()
    {
    bool hack = false;
    while(true)
    {
    if(GetAsyncKeyState(VK_NUMPAD0) < 0){
    hack = !hack;
    if(hack){
    PushToConsole("SkelModelStencil 1");
    hack=true;
    } else {
    PushToConsole("SkelModelStencil 0");
    hack=false;

    if(GetAsyncKeyState(VK_NUMPAD1) < 0){
    hack = !hack;
    if(hack){
    PushToConsole("CamMaxPosYOffset 200.000000 1");
    hack=true;
    } else {
    PushToConsole("CamMaxPosYOffset 200.000000 0");
    hack=false;

    if(GetAsyncKeyState(VK_NUMPAD2) < 0){
    hack = !hack;
    if(hack){
    PushToConsole("FogEnable 1");
    hack=true;
    } else {
    PushToConsole("FogEnable 0");
    hack=false;

    if(GetAsyncKeyState(VK_NUMPAD3) < 0){
    hack = !hack;
    if(hack){
    PushToConsole("ModelDebug_DrawBoxes 1");
    hack=true;
    } else {
    PushToConsole("ModelDebug_DrawBoxes 0");
    hack=false;

    if(GetAsyncKeyState(VK_NUMPAD4) < 0){
    hack = !hack;
    if(hack){
    PushToConsole("drawguns 1");
    hack=true;
    } else {
    PushToConsole("drawguns 0");
    hack=false;

    if(GetAsyncKeyState(VK_NUMPAD5) < 0){
    hack = !hack;
    if(hack){
    PushToConsole("ShowFps 1");
    hack=true;
    } else {
    PushToConsole("ShowFps 0");
    hack=false;

    if(GetAsyncKeyState(VK_NUMPAD6) < 0){
    hack = !hack;
    if(hack){
    PushToConsole("ActivationDistance 999999 1");
    hack=true;
    } else {
    PushToConsole("ActivationDistance 999999 0");
    hack=false;

    if(GetAsyncKeyState(VK_NUMPAD7) < 0){
    hack = !hack;
    if(hack){
    PushToConsole("WireframeModels 1");
    hack=true;
    } else {
    PushToConsole("WireframeModels 0");
    hack=false;

    if(GetAsyncKeyState(VK_NUMPAD8) < 0){
    hack = !hack;
    if(hack){
    PushToConsole("ShowHitSphere 0.000000");
    hack=true;
    } else {
    PushToConsole("ShowHitSphere 1.000000");
    hack=false;
    }
    Sleep(200);
    }

    }
    }



    DWORD WINAPI dwHackThread(LPVOID)
    ;
    while( !IsGameReadyForHook() )
    Sleep(100);
    main();
    return 0;
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
    }
    return TRUE;
    }

    Error:
    ------ Build started: Project: HotBase, Configuration: Release Win32 ------
    Base.cpp
    Base.cpp(119): error C2562: 'main' : 'void' function returning a value
    Base.cpp(20) : see declaration of 'main'
    Base.cpp(122): error C2601: 'DllMain' : local function definitions are illegal
    Base.cpp(79): this line contains a '{' which has not yet been matched
    Base.cpp(130): fatal error C1075: end of file found before the left brace '{' at 'Base.cpp(79)' was matched
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

  2. #2
    o-o's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    who reading that ? T_T
    Posts
    682
    Reputation
    10
    Thanks
    307
    My Mood
    Cold
    I think you need to put { or } after one Hotkey

    I THINK !!!

  3. #3
    BloodSkin's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Columbus, OH
    Posts
    353
    Reputation
    11
    Thanks
    63
    check your braces. you forgot to close one or forgot to open one or something. thats what the first error is, and probably the rest.

    EDIT: it doesnt look like you closed any of your else functions

  4. #4
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,881
    Reputation
    163
    Thanks
    3,291
    My Mood
    Sleepy
    You need different bool variables for each hack.

  5. #5
    BloodSkin's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Columbus, OH
    Posts
    353
    Reputation
    11
    Thanks
    63
    Quote Originally Posted by Sealionone View Post
    You need different bool variables for each hack.
    o.O is that what caused his errors though? im probably wrong but i dont think that was the prob. just trying to learn

  6. #6
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,881
    Reputation
    163
    Thanks
    3,291
    My Mood
    Sleepy
    Quote Originally Posted by BloodSkin View Post
    o.O is that what caused his errors though? im probably wrong but i dont think that was the prob. just trying to learn
    No but that hack will fail hard if he doesn't fix that.

  7. #7
    BloodSkin's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Columbus, OH
    Posts
    353
    Reputation
    11
    Thanks
    63
    Quote Originally Posted by Sealionone View Post
    No but that hack will fail hard if he doesn't fix that.
    ah ok. i was starting to have a complex lol.

  8. #8
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,006
    Reputation
    202
    Thanks
    2,944
    My Mood
    Twisted
    i used to ge tthis problem.. listen to what thse ppl r saying and on the lefthand column.. look for dllmain.cpp. Delete that. It shud work.

    Current Works:
    ---Horror Game





    [IMG]https://i645.photobucke*****m/albums/uu180/drgnforce9/Siggys/signature3.jpg[/IMG]
    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  9. #9
    ^...,^'s Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    New Zealand,Auckland
    Posts
    698
    Reputation
    4
    Thanks
    90
    My Mood
    Lonely
    did you ever learn c++?

  10. #10
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    whats your .h file say?

    that could be your issue.
    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-

  11. #11
    carterv's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    51
    Reputation
    10
    Thanks
    3
    My Mood
    Devilish
    How come no one knows how to use braces?

    @OP you have to close all of you if/else statements. Try looking for brackets that you forgot to close.

  12. #12
    EDWINSEE's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Arkansas
    Posts
    125
    Reputation
    10
    Thanks
    127
    My Mood
    Angelic
    u use CoderNever base he but errors in the base so no1 will copy & paste learn c++ or google the errors that is how I fix mine errors.

  13. #13
    whit+'s Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    264
    Reputation
    10
    Thanks
    37
    My Mood
    Breezy
    Quote Originally Posted by ^...,^ View Post
    did you ever learn c++?
    Did you either/

    But anyways these errors are very simple...
    First two Chapter should fix these../yea

  14. #14
    FireShock33's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    i dont know how to fix that

  15. #15
    EDWINSEE's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Arkansas
    Posts
    125
    Reputation
    10
    Thanks
    127
    My Mood
    Angelic
    ok here is the Hack Source I been working on but i took out the hot keys they are auto on
    and i put easy to fix errors. credit to CoderNever for base and BloodSkin for help: this hack is detected for me.
    __________________________________________________ ________________________

    #include <windows.h>
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll" )!= NULL
    && GetModuleHandleA( "ClientFX.fxd" )!= NULL
    && GetModuleHandleA( "CShell.dll" )!= NULL )
    return true;
    return false;
    }
    void PushToConsole(const char* Command) {
    DWORD CNADDIE =
    void* Send = ( void* )*( DWORD* )(CNADDIE);
    __asm
    {
    push Command;
    call Send;
    add esp,
    }
    }
    void main();
    {
    while(true);

    PushToConsole("SkelModelStencil 1");
    PushToConsole("ModelDebug_DrawBoxes 1")
    PushToConsole("WeaponSway 0");
    PushToConsole("PerturbRotationEffect 0.000000");
    PushToConsole("PerturbIncreaseSpeed 0.000000");
    PushToConsole("PerturbWalkPercent 0.000000");
    PushToConsole("PerturbFiringIncreaseSpeed 0.000000");
    memcpy((LPVOID)0x3741A550, "\x90\x90\x90", 3);
    memcpy((LPVOID)0x3740AA99, "\x90\x90\x90", 3);
    memcpy((LPVOID)0x3741A564, "\x90\x90\x90", 3);
    memcpy((LPVOID)0x3741A567, "\x90\x90\x90", 3);
    memcpy((LPVOID)0x3741A570, "\x90\x90\x90", 3);
    memcpy((LPVOID)0x37466264, "\x90\x90\x90\x90\x90\x90", 6);
    }
    }
    DWORD WINAPI dwHackThread(LPVOID){
    while( !IsGameReadyForHook())
    Sleep(100);
    main();
    return 0;
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
    }
    return TRUE;
    }
    Last edited by EDWINSEE; 07-24-2010 at 06:59 PM.

Similar Threads

  1. hotkey hacks not working
    By daniyalkool in forum Combat Arms Help
    Replies: 6
    Last Post: 06-03-2010, 11:01 AM
  2. [Release] God601's Hotkey Hack v1.1
    By Grim in forum Combat Arms Hacks & Cheats
    Replies: 148
    Last Post: 05-05-2010, 04:10 PM
  3. [Release] Bravia's MPGH Hotkey Hack 1.0
    By R45H1D in forum Combat Arms Hacks & Cheats
    Replies: 13
    Last Post: 05-01-2010, 03:03 PM
  4. HotKey hack source
    By powerfear in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 22
    Last Post: 04-23-2010, 01:44 AM
  5. one of my basic hotkey hacks
    By mtbman19 in forum WarRock - International Hacks
    Replies: 15
    Last Post: 06-30-2008, 08:33 AM