w00t! Need help with rapidfire again...
Well... I am amazing... but not amazing enough for me to figure out dis problem...
(Below)
Code:
#include <iostream>
#include <windows.h>
#include <time.h>
using namespace std;
int main()
{
while(1)
{
if(GetAsyncKeyState(VK_LBUTTON))//for left mouse
{
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); //Click Down
Sleep (1);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); //Click Up
keybd_event(VK_RCONTROL,0x11,KEYEVENTF_KEYUP,0); //will virtually release key, but since key is held down it will seem like u pressed it again really fast.
}
if(GetAsyncKeyState(VK_LBUTTON)=0)
//This is the problem... Right here it should detect whether the Lmouse button is down or up, and if its up it should not click.
//However it does not detect "=0" as a valid command (=0 normaly means if its activated or not...)
//Any ideas or source that I could use for such an occasion?
break;
}
return 0;
}
So... yeh. Whats the code for that section? I cannot figure it out. Help pl0x.
P.S I am using Dev C++ if that helps any...
P.P.S For teh M_T_H, if you know that I am strugling with a basic rapid-fire script, why give me a nigh impossible task to do at my level? BAM!, go.