Thread: Hotkey

Results 1 to 10 of 10
  1. #1
    Dragon(H)ell's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    703
    Reputation
    154
    Thanks
    4,819
    My Mood
    Angelic

    Hotkey

    Hey guys i tried to make hotkey but i filed and i need ur help

    Code:
    #include <windows.h>
    
    #define WeaponMgr       0xA68F80
    #define NoReload        0x269C
    
    
    DWORD WINAPI Hacks(LPVOID)
    {
        bool  reload = false;
      
    if(GetAsyncKeyState(VK_F11)&1){ reload = true; Beep(1000,1000);}
    if(GetAsyncKeyState(VK_F12)&1){ reload = false;  Beep(1000,1000);}
    	
        while(1)
        {
            DWORD CShell     = (DWORD)GetModuleHandleA("CShell.dll");
            DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
     
    
            if(reload)
            {
                if (pWeaponMgr)
                {
                    for(int i=0; i<560; i++)
                    {
                        if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
                            *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoReload) = 100,0; //String is "ReloadAnimRatio"
                    }
                }
            }
    
            Sleep(100);
        }
    }
     
     
     
    bool R2H()
    {
        if ( GetModuleHandleA("CShell.dll") != NULL 
    	  && GetModuleHandleA("ClientFx.fxd") != NULL )
        return 1;
        return 0;
    }
    
    DWORD WINAPI W41t(LPVOID)
    {
        while ( !R2H()) Sleep(200);
        CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
        return 0;
    }
     
     
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    	DisableThreadLibraryCalls(hDll);
    
    	if ( dwReason == DLL_PROCESS_ATTACH )
    	{
    		MessageBoxA(0, "blah blah blah","blah blah blah", 0);
    		CreateThread(0,0,(LPTHREAD_START_ROUTINE)W41t,0,0, 0);
    	}
    	return 1;
    }
    i need to make F11 No reload Turned on F12 No reload Turned off

    Please Note : This is not my base it's swiftdude one i won't share my base to keep it save from leechers hand

  2. #2
    MasterOf's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Location
    >.<
    Posts
    108
    Reputation
    10
    Thanks
    183
    My Mood
    Aggressive
    make a
    else
    and make the normal value
    for NOreload is the Normal value 1;

  3. #3
    Dragon(H)ell's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    703
    Reputation
    154
    Thanks
    4,819
    My Mood
    Angelic
    Quote Originally Posted by MasterOf View Post
    make a
    else
    and make the normal value
    for NOreload is the Normal value 1;
    if(GetAsyncKeyState(VK_F12) != false){
    reload = !reload;}

    if(reload){
    if(pWeaponMgr){
    for(int i = 0; i < 577; i ++){
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL){
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) + (4*i))) + 0x269C) = (float) 100.0;
    }else{
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) + (4*i))) + 0x269C) = (float) 1.0;
    }
    }
    }
    }

    same problem no thing happened when i pressed f12

  4. #4
    “I fear the day technology will surpass our human interaction. The world will have a generation of idiots.” ~Albert Einstein
    MPGH Member
    SteamAss's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    Crossfire
    Posts
    2,278
    Reputation
    28
    Thanks
    770
    My Mood
    Asleep
    Do the Hotkeys work now?

    ---------- Post added at 08:54 AM ---------- Previous post was at 08:51 AM ----------

    and DragonHell is right



    If you need my Help:
    PM/VM

    Because The People Who Are Crazy Enough To Think They Can Change The World, Are The Ones Who Do. ~Steve Jobs

  5. #5
    MasterOf's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Location
    >.<
    Posts
    108
    Reputation
    10
    Thanks
    183
    My Mood
    Aggressive
    Here:

    Code:
    if(GetAsyncKeyState(VK_F12) !=){
    reload = !reload;}
    if(reload){
    if(pWeaponMgr){
    for(int i = 0; i < 577; i ++){
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL){
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) + (4*i))) + 0x269C) = (float) 100.0;
    }else{
    if(GetAsyncKeyState(VK_F11) != true){
    if(reload){
    if(pWeaponMgr){
    for(int i = 0; i < 577; i ++){
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL){
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) + (4*i))) + 0x269C) = (float) 1.0;
    }
    }
    }
    }
    so ?

  6. #6
    Dragon(H)ell's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    703
    Reputation
    154
    Thanks
    4,819
    My Mood
    Angelic
    Code:
    if(GetAsyncKeyState(VK_F11) != false){
    reload = !reload;}
    if(reload){
    if(pWeaponMgr){
    for(int i = 0; i < 577; i ++){
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL){
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+ (4*i))) + 0x269C) = (float) 100.0;
    }else{
    if(GetAsyncKeyState(VK_F12)&1){
    if(reload){
    if(pWeaponMgr){
    for(int i = 0; i < 577; i ++){
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL){
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+ (4*i))) + 0x269C) = (float)   1.0;}}
    }}}}}}}
    Same

    //Edit

    i have also tried
    Code:
    if (GetAsyncKeyState(VK_F11)){
    if(pWeaponMgr){
    for(int i = 0; i < 577; i ++){
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL){
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+ (4*i))) + 0x269C) = (float) 100.0;
    }}}}
    
    if (GetAsyncKeyState(VK_F12)){
    if(pWeaponMgr){
    for(int i = 0; i < 577; i ++){
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL){
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+ (4*i))) + 0x269C) = (float)   1.0;
    }}}}
    but same problem
    Last edited by Dragon(H)ell; 01-03-2012 at 11:49 AM.

  7. #7
    DaRk's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Location
    MPGH
    Posts
    1,910
    Reputation
    119
    Thanks
    3,986
    My Mood
    Asleep
    i think xtrap deletes the thread now so u have to make an menu

  8. #8
    258456's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    ghjghj
    Posts
    1,222
    Reputation
    18
    Thanks
    300
    My Mood
    Relaxed
    Lol, crossfire is killing your thread, so ur dll isn't even checking for key state since the thread that is being programmed to do so isn't in effect.

  9. #9
    Dragon(H)ell's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    703
    Reputation
    154
    Thanks
    4,819
    My Mood
    Angelic
    So I have to do menu or there is another way to make hotkey ?

  10. #10
    Brimir's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    357
    Reputation
    21
    Thanks
    281
    Why the hell.. do you let your hotkey cheak run once?

    And why is there no "disabled" value?

    Edit:
    Maby an idee to make your loop undetected :\?

    Quote Originally Posted by Dragon(H)ell View Post
    So I have to do menu or there is another way to make hotkey ?
    Do you want to make a menu that response to the mouse? else it also needs hotkey's...
    Last edited by Brimir; 01-04-2012 at 01:19 AM.
    Thanks @~FALLEN~ for helping me
    Thanks @Shakai for helping me

    Other nice ppl:
    @258456
    @giniyat101

    My usefull posts:
    Byte scanner
    How to make a logger
    Hook example
    How to make a memhack base
    How to use classes with memhacking
    Addie finder

Similar Threads

  1. vb hotkeys
    By cjg333 in forum General Game Hacking
    Replies: 7
    Last Post: 07-23-2008, 01:08 PM
  2. Hotkeys in C++
    By Dave84311 in forum C++/C Programming
    Replies: 7
    Last Post: 09-07-2007, 07:13 AM
  3. My hack release hotkey v1
    By purenoob134 in forum WarRock - International Hacks
    Replies: 23
    Last Post: 07-13-2007, 07:56 PM
  4. Hotkeys for a VB trainer
    By scooby107 in forum Visual Basic Programming
    Replies: 10
    Last Post: 07-03-2007, 12:43 PM
  5. [Tutorial] How To Mack HotKeys On VB
    By TheRedEye in forum WarRock - International Hacks
    Replies: 32
    Last Post: 06-23-2007, 10:24 PM