Hey I'm pretty sure you need to do something like
Code:if (GetASyncKeyState(VK_RBUTTON)) { Do stuffs }
Hi all!
I need help with a easy hack!
The source code to c++ i need is:
When i "left click" I want the bot to first press "3" and after "1"
SO....
I need help with the code for that code so it will get easier to fast scope with Sniper!
I will be glad if any1 could help me with that, and if some1 can figure that out
//hejsan
Last edited by Zoom; 08-19-2009 at 03:10 PM. Reason: MEANT LEFT CLICK**************
Hey I'm pretty sure you need to do something like
Code:if (GetASyncKeyState(VK_RBUTTON)) { Do stuffs }
Woops double post... Sorry. Tell me if my suggestion works, i cant test it right now cause im away from my computer.
...Just give some errors...try it you!
Hmm i did try it, i shall try again now. Ooh yeah for one thing i forgot to tell you to add
[php]
#include <windows.h>
[/php]
under #include <iostream> or somewhere abouts there
But one sec there are some other things i need to sort out with it.
Sorry im not that familiar with the windows API.
Last edited by zeco; 08-19-2009 at 03:24 PM.
#include <windows.h>
if (GetASyncKeyState(VK_RBUTTON))
{
Do stuffs
}
doesn´t work......Did you make it work?
Wait, you do know how to do everything else once i give u the code fragment, correct?
Well, eventually i got it kind of working, the whole program from what you describe, but it only works in the one window. Thus to get it working in game i need to bring focus to the window or something like that according to MSDN, so i officially give up since i have already far overreached my programming ability. A.K.A i am a sucky choob.
Last edited by zeco; 08-19-2009 at 04:34 PM.
can u send me the source file on the bot when i left click the bot t press "3" and after "1"
[php]
#include <iostream>
#include <windows.h>
void lbutton(){
if (GetAsyncKeyState(VK_LBUTTON) &1){
std::cout << "Click Registered\n";
keybd_event(0x33, 4, KEYEVENTF_EXTENDEDKEY, 3 );
//Sleep(250);
keybd_event(0x31, 2, KEYEVENTF_EXTENDEDKEY, 1 );
}
}
int main()
{
for (int i = 0; i == 0; i=i)
lbutton();
std::cin.get();
std::cin.get();
return 0;
}
[/php]
that was basically it. And if anyone passing through wants to give me pointer on better coding style or an easier way to do what i just failed to do, feel free.
P.S. Is it just me or has the site felt buggy recently?
Last edited by zeco; 08-19-2009 at 04:33 PM.
Zoom (08-19-2009)
thanks it works half ways
But is it to hard to get it work in a game etc combat arms?
Can you do it? If you make it i´m SOOOOOOOOOOO happy
Ok, do you know any1 who can do it or do yuo think you can make it?
you could try saving it as a .dll and injecting it into the game...
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
I don't think that has much to do with it, i just need to make the program target the correct window, but MSDN is too confusing it took me an hour just to find the right syntax to hit the 3 and 1 keys. Plus i'm not exactly sure how to do dll's.
Injecting won't work because i have never gotten a hack and/or bypass working....
Last edited by zeco; 08-19-2009 at 11:40 PM.
rwkeith would know how to do this :L Im just as clueless. C++ seems easy compared to Visual Studio @_@.... I just tried to compile it into a .dll and got all these errors >_>.
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower