Results 1 to 12 of 12
  1. #1
    gresan6's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    ૱૱૱૱૱૱૱૱૱૱૱૱૱૱&#
    Posts
    165
    Reputation
    19
    Thanks
    29
    My Mood
    Amazed

    [C++]Need Help With BF3 Auto pressing "Q"

    Hey everyone, I'm extremely new to c++.
    I need help with a very simple auto press Q program to spot people automaticlly.

    The code:

    Code:
    #include <iostream>
    #include <Windows.h>
    #include "conio.h"
    
    
    using namespace std;
    
    
    
    int main(){
    	HWND windowHandle = FindWindow(0, ("Battlefield 3™"));
    		INPUT *key;
    	if(windowHandle == NULL){
    		cout << "Didn't Found The Game..." << endl;
    		_getch();
    	}
    	else{
    		cout << "Autopressing W";
    	SetForegroundWindow(windowHandle); 
    	Sleep(1000); 
    
    	key = new INPUT;
    	key->type = INPUT_KEYBOARD; 
    	key->ki.time = 0; 
    	key->ki.wScan = 0; 
    	key->ki.dwExtraInfo = 0;
    	while(true){
    		if(GetAsyncKeyState(VK_F5)){
    		exit(0);
    		}	
    			key->ki.wVk = 0x51; 
    			key->ki.dwFlags = 0; 
    			SendInput(1,key,sizeof(INPUT));
    			Sleep(1000);
    	}
    
    
    _getch();
    	}
    }
    The prob is, when i run the program, the camera is just rotating right all the time...Does this have something about the game's anti-hack or something?

  2. #2
    Kuba50956's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    4
    I'm not any pro at it, not even nooby, but I'm sure that's not PunkBuster's fault.

  3. #3
    gresan6's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    ૱૱૱૱૱૱૱૱૱૱૱૱૱૱&#
    Posts
    165
    Reputation
    19
    Thanks
    29
    My Mood
    Amazed
    Alright, Thank you. Bcuz it's pretty clear in the code, that it is pressing button Q and no rotating mouse xD

  4. #4
    AraaasH's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Where you want me to be
    Posts
    160
    Reputation
    12
    Thanks
    82
    My Mood
    Inspired
    I've tried millions of times to get this to work.
    I managed to loop a key pressing until i press another key, but it's useless since I have to restart the script every time I stop the loop.
    FUCK LIFE I'M OUT

    Press "Thanks" if I helped you bitch.


  5. #5
    gresan6's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    ૱૱૱૱૱૱૱૱૱૱૱૱૱૱&#
    Posts
    165
    Reputation
    19
    Thanks
    29
    My Mood
    Amazed
    Quote Originally Posted by AraaasH View Post
    I've tried millions of times to get this to work.
    I managed to loop a key pressing until i press another key, but it's useless since I have to restart the script every time I stop the loop.
    Hmm, Alright, So you're saying that this wont work?

  6. #6
    AraaasH's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Where you want me to be
    Posts
    160
    Reputation
    12
    Thanks
    82
    My Mood
    Inspired
    Quote Originally Posted by gresan6 View Post
    Hmm, Alright, So you're saying that this wont work?
    Not in my knowledge, maybe there's a way to get around it. Don't give up just like I did
    FUCK LIFE I'M OUT

    Press "Thanks" if I helped you bitch.


  7. #7
    gresan6's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    ૱૱૱૱૱૱૱૱૱૱૱૱૱૱&#
    Posts
    165
    Reputation
    19
    Thanks
    29
    My Mood
    Amazed
    Quote Originally Posted by AraaasH View Post
    Not in my knowledge, maybe there's a way to get around it. Don't give up just like I did
    I'll try my best, even thou im a newbie xD
    Your goal should not be to be the best, but rather create something dirrerent, that the best will look at.

  8. #8
    selimkose's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    85
    My Mood
    Yeehaw
    i got a program but its not aprroved its a script too

  9. #9
    gresan6's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    ૱૱૱૱૱૱૱૱૱૱૱૱૱૱&#
    Posts
    165
    Reputation
    19
    Thanks
    29
    My Mood
    Amazed
    Quote Originally Posted by selimkose View Post
    i got a program but its not aprroved its a script too
    Hmm, Could you please send it too me and i'll check it out?
    Your goal should not be to be the best, but rather create something dirrerent, that the best will look at.

  10. #10
    lhikary's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    249
    Reputation
    10
    Thanks
    932
    "send it to me" he can send you a keylogger, you that stupid?

  11. #11
    gresan6's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    ૱૱૱૱૱૱૱૱૱૱૱૱૱૱&#
    Posts
    165
    Reputation
    19
    Thanks
    29
    My Mood
    Amazed
    Quote Originally Posted by lhikary View Post
    "send it to me" he can send you a keylogger, you that stupid?
    Yeah, I am that stupid, Prob? o.O
    Your goal should not be to be the best, but rather create something dirrerent, that the best will look at.

  12. #12
    dimucchu2's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0
    My Mood
    Amused
    Lol, before touching the file you could check it. its not stupid to accept unknown files. Just be awared of scanning/checking code before opening.


    About the topic:
    if you would transfer your code to C# (.NET) i could help you out. I am highly skilled on C# (.NET). with C# .NET/VB.NET you could include DirectX elements to do ESP and Radar for example.

Similar Threads

  1. [Help] Need help with exe auto injector programs on IW5M ???
    By jeffand123 in forum Call of Duty Modern Warfare 3 Private Server Hacks
    Replies: 4
    Last Post: 12-13-2012, 01:42 AM
  2. [Help] Need Help with Auto Bhop!
    By Auncel in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 1
    Last Post: 11-28-2012, 06:26 PM
  3. [Help Request] Need help with numpad while recording macro !
    By JonathanTBM in forum Vindictus Help
    Replies: 2
    Last Post: 05-10-2011, 08:37 PM
  4. [Help Request] need help with mod
    By .:MUS1CFR34K:. in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 4
    Last Post: 05-01-2011, 01:40 PM
  5. [Help Request] need help with modding
    By BayBee Alyn in forum Combat Arms Help
    Replies: 0
    Last Post: 04-27-2011, 10:06 PM

Tags for this Thread