Results 1 to 4 of 4
  1. #1
    LEGiiTxCHAOTiiC's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Chicago
    Posts
    200
    Reputation
    39
    Thanks
    70

    Hot Keys Increment FoV Value

    So for my C++ FoV Changer, I want to be able to press VK_PRIOR to increment the field of view value by 5 each time it is pressed. Vice versa for VK_NEXT. The address I write to each increment are: 0x063FB5C0 and 0x063FB5D0

    Also, the default will be 80 so when you press VK_PRIOR it boosts it up to 85 the first time you press it, then the second time you press it, you get 90. Vice versa for VK_NEXT, Press once to get 75, again for 70 etc. If you could help me, I'd appreciate it very much. Thanks

  2. #2
    LEGiiTxCHAOTiiC's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Chicago
    Posts
    200
    Reputation
    39
    Thanks
    70
    EDIT: I worded that HORRIBLY. In simpler terms, I want it so when I press Page Up key, it boosts the degrees of field of view by 5, and when I press Page Down, it decrements the degrees of field of view by 5.

  3. #3
    intervention61's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    285
    Reputation
    10
    Thanks
    829
    My Mood
    Cool
    Code:
    float CurrentFOV;
    ReadProcessMemory( hProcess, FOVAddress, &CurrentFOV, 4, NULL );
    
    switch( KeyPressed )
    {
    	case VK_PRIOR:
    
    		CurrentFOV += 5.f;
    		break;
    
    	case VK_NEXT:
    
    		CurrentFOV -= 5.f;
    		break;
    
    	default:
    
    		break;
    }
    
    WriteProcessMemory( hProcess, FOVAddress, &CurrentFOV, 4, NULL );
    "Joker: why the hakcer are steaklign us name it´s the greatest asshole and motherfucker and i fuck him or her mother"

  4. #4
    LEGiiTxCHAOTiiC's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Chicago
    Posts
    200
    Reputation
    39
    Thanks
    70
    Quote Originally Posted by intervention61 View Post
    Code:
    float CurrentFOV;
    ReadProcessMemory( hProcess, FOVAddress, &CurrentFOV, 4, NULL );
    
    switch( KeyPressed )
    {
    	case VK_PRIOR:
    
    		CurrentFOV += 5.f;
    		break;
    
    	case VK_NEXT:
    
    		CurrentFOV -= 5.f;
    		break;
    
    	default:
    
    		break;
    }
    
    WriteProcessMemory( hProcess, FOVAddress, &CurrentFOV, 4, NULL );
    Thank you, I got it all working now, except for KeyPressed... I know it may seem completely obvious but I'm missing it. What do I do with it? What type of variable is it?

Similar Threads

  1. [Solved] Hot Keys And Values
    By valakas in forum C++/C Programming
    Replies: 4
    Last Post: 07-05-2012, 02:33 PM
  2. [REQUEST][IDEA]CA Spammer w/ Hot Keys
    By Pixie in forum Combat Arms Discussions
    Replies: 9
    Last Post: 09-06-2009, 01:09 PM
  3. hot keys
    By jesussoto100 in forum Combat Arms Help
    Replies: 11
    Last Post: 08-30-2009, 12:00 PM
  4. hot keys
    By jesussoto100 in forum Combat Arms Hacks & Cheats
    Replies: 7
    Last Post: 08-30-2009, 02:22 AM
  5. Hot Keys
    By nub_g0t_high in forum Visual Basic Programming
    Replies: 3
    Last Post: 10-22-2007, 06:07 PM

Tags for this Thread