Thread: Hotkey help :(

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    desertflame's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Posts: 23847611237
    Posts
    380
    Reputation
    48
    Thanks
    850
    My Mood
    Amused

    Hotkey help :(

    Hey. I never really used hotkeys because it was pretty useless to me but now im kinda trying new things. It really isn't new to me but for some reason, nothing happens when i press it ingame.

    Here the code:
    Code:
          
    
    #include "stdafx.h"  //idk why i bothered putting this, im sure y'all would know anyway
    
    // rec is false btw. so i didnt bother declaring it in here
    
    
    
                     while(true)
    		{
    
    		if(GetAsyncKeyState(VK_NUMPAD0)<0)
    		{rec =! rec; Beep(500,500);}
    		if(rec==true)
    		{
    			
    			memcpy((VOID*)0x6D2894, "\x00\x00\x00\x00\x00\x00", 6);
    
    		
    		}
    	    
    		
    		if(rec==false)
    	       {  
    	
    			
    			memcpy((VOID*)0x6D2894, "\x01\x01\x01\x01\x01\x01", 6);
    	    
    		}
    		}
    credits: @giniyat101 for wallhack source
    Last edited by desertflame; 07-02-2012 at 06:57 PM. Reason: important

  2. #2
    JusCaus's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    725
    Reputation
    23
    Thanks
    112
    My Mood
    Aggressive
    Quote Originally Posted by desertflame View Post
    Hey. I never really used hotkeys because it was pretty useless to me but now im kinda trying new things. It really isn't new to me but for some reason, nothing happens when i press it ingame.

    Here the code:
    Code:
          
    
    #include "stdafx.h"  //idk why i bothered putting this, im sure y'all would know anyway
    
    // rec is false btw. so i didnt bother declaring it in here
    
    
    
                     while(true)
    		{
    
    		if(GetAsyncKeyState(VK_NUMPAD0)<0)
    		{rec =! rec; Beep(500,500);}
    		if(rec==true)
    		{
    			
    			memcpy((VOID*)0x6D2894, "\x00\x00\x00\x00\x00\x00", 6);
    
    		
    		}
    	    
    		
    		if(rec==false)
    	       {  
    	
    			
    			memcpy((VOID*)0x6D2894, "\x01\x01\x01\x01\x01\x01", 6);
    	    
    		}
    		}
    credits: @giniyat101 for wallhack source

    Have u tried putting else n there?
    [IMG]https://i1132.photobucke*****m/albums/m571/JusCausGraphix.jpg[/IMG]

  3. #3
    {Banned}**HACKER**'s Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    843
    Reputation
    8
    Thanks
    719
    My Mood
    Cheerful
    Yes to make it an On and off hotkey you would have to include else after the first part so if its pressed again it will turn off

  4. #4
    desertflame's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Posts: 23847611237
    Posts
    380
    Reputation
    48
    Thanks
    850
    My Mood
    Amused
    Quote Originally Posted by JusCaus View Post
    Have u tried putting else n there?
    The if statement with getasynckeystate is only changing the boolean state of rec when the key is pressed right? So where should i put else?
    All That does is this:
    rec=!rec; and Beep(500,500);
    A bit confused as to where the else should go.
    Thanks for the reply.

  5. #5
    Dragon(H)ell's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    703
    Reputation
    154
    Thanks
    4,819
    My Mood
    Angelic
    make it &1 not <0

    Code:
    if(GetAsyncKeyState(VK_NUMPAD0)&1) {rec = !rec ; Beep(500,500);}
    good luck

  6. #6
    desertflame's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Posts: 23847611237
    Posts
    380
    Reputation
    48
    Thanks
    850
    My Mood
    Amused
    Quote Originally Posted by Dragon(H)ell View Post
    make it &1 not <0

    Code:
    if(GetAsyncKeyState(VK_NUMPAD0)&1) {rec = !rec ; Beep(500,500);}
    good luck
    Tried before i posted here T_T

  7. #7
    JusCaus's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    725
    Reputation
    23
    Thanks
    112
    My Mood
    Aggressive
    Quote Originally Posted by desertflame View Post
    Tried before i posted here T_T

    I'll post the code when I get on the pc
    [IMG]https://i1132.photobucke*****m/albums/m571/JusCausGraphix.jpg[/IMG]

  8. #8
    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 desertflame View Post
    Tried before i posted here T_T
    So the problem in your base,xtrap killing your thread

    edit:BTW are you using HideModule?
    Last edited by Dragon(H)ell; 07-02-2012 at 07:10 PM.

  9. #9
    desertflame's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Posts: 23847611237
    Posts
    380
    Reputation
    48
    Thanks
    850
    My Mood
    Amused
    Quote Originally Posted by Dragon(H)ell View Post
    So the problem in your base,xtrap killing your thread

    edit:BTW are you using HideModule?
    Nope. No, all my other hacks are working in the same thread. Thanks tho

  10. #10
    DOOP's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Leyte
    Posts
    547
    Reputation
    44
    Thanks
    3,251
    try this
    Code:
    if(GetAsyncKeyState(VK_NUMPAD0)&1)
    {
    wall = !wall;
    }
    if(wall)
    {
    memcpy((VOID*)0x6D2894, "\x00\x00\x00\x00\x00\x00", 6);
    }
    else
    {
    memcpy((VOID*)0x6D2894, "\x01\x01\x01\x01\x01\x01", 6);
    }

  11. The Following 2 Users Say Thank You to DOOP For This Useful Post:

    desertflame (07-03-2012),[mi5 (07-03-2012)

  12. #11
    bandi12's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    562
    Reputation
    30
    Thanks
    318
    My Mood
    Yeehaw
    Quote Originally Posted by DOOP View Post
    try this
    Code:
    if(GetAsyncKeyState(VK_NUMPAD0)&1)
    {
    wall = !wall;
    }
    if(wall)
    {
    memcpy((VOID*)0x6D2894, "\x00\x00\x00\x00\x00\x00", 6);
    }
    else
    {
    memcpy((VOID*)0x6D2894, "\x01\x01\x01\x01\x01\x01", 6);
    }
    IDK for me whit &1 was never working i am using <0 it's work perfect when the key is not persed the value is + when you press it the value is something like -9000...
    @desertflame when i added first time hotkey's i have some problem like this my problem was that Xcrap after 10-15 s killed my loop maybe is killing you'r sto
     




    MY Latest Aimbot on : Orbital Space (Video Comming Soon)'





     

    - @UltraPGNoob
    - @dicky88smd
    - @giniyat101

  13. The Following User Says Thank You to bandi12 For This Useful Post:

    desertflame (07-03-2012)

  14. #12
    DOOP's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Leyte
    Posts
    547
    Reputation
    44
    Thanks
    3,251
    Quote Originally Posted by bandi12 View Post
    IDK for me whit &1 was never working i am using <0 it's work perfect when the key is not persed the value is + when you press it the value is something like -9000...
    if you use "&1" and you press hotkey. the feature turn ON and OFF smoothly
    If you are not using sleep in HACKTHREAD
    if you use the sleep you need to hold alt + hotkey
    Last edited by DOOP; 07-03-2012 at 07:49 AM.

  15. The Following User Says Thank You to DOOP For This Useful Post:

    desertflame (07-03-2012)

  16. #13
    desertflame's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Posts: 23847611237
    Posts
    380
    Reputation
    48
    Thanks
    850
    My Mood
    Amused
    Quote Originally Posted by DOOP View Post

    if you use "&1" and you press hotkey. the feature turn ON and OFF smoothly
    If you are not using sleep in HACKTHREAD
    if you use the sleep you need to hold alt + hotkey
    So <0 works smoothly if im using sleep then?

  17. #14
    bandi12's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    562
    Reputation
    30
    Thanks
    318
    My Mood
    Yeehaw
    Quote Originally Posted by desertflame View Post
    So <0 works smoothly if im using sleep then?
    yah add a sleep(100) and it;s fine i am usign it and i don't have any problem
     




    MY Latest Aimbot on : Orbital Space (Video Comming Soon)'





     

    - @UltraPGNoob
    - @dicky88smd
    - @giniyat101

  18. #15
    DaRk's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Location
    MPGH
    Posts
    1,910
    Reputation
    119
    Thanks
    3,986
    My Mood
    Asleep
    try :
    Code:
    bool wall = false;
    if(GetAsyncKeyState(VK_Hotkey)) { hack = !hack; }
    if(wall)
    {
    memcpy((VOID*)0x6D2894, "\x00\x00\x00\x00\x00\x00", 6);//on
    }
    else
    {
    memcpy((VOID*)0x6D2894, "\x01\x01\x01\x01\x01\x01", 6);//off
    }

  19. The Following User Says Thank You to DaRk For This Useful Post:

    [mi5 (07-03-2012)

Page 1 of 2 12 LastLast

Similar Threads

  1. [Help] hotkey help
    By JusCaus in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 3
    Last Post: 02-12-2012, 03:26 PM
  2. Hotkey help.
    By XxTylerxX in forum C# Programming
    Replies: 10
    Last Post: 05-15-2010, 12:14 AM
  3. VB08 HOTkey (help)
    By boyd45 in forum Visual Basic Programming
    Replies: 3
    Last Post: 06-21-2008, 02:22 PM
  4. Vb (hotkey) Help
    By redarr in forum Visual Basic Programming
    Replies: 13
    Last Post: 11-05-2007, 03:31 PM
  5. [Help] How do i set a hotkey to Scope?
    By wr194t in forum Visual Basic Programming
    Replies: 9
    Last Post: 09-27-2007, 04:53 PM