HelpCan someone compile this shit?

Posts 1–4 of 4 · Page 1 of 1
Can someone compile this shit?
Hi dudes...im trying to compile this code but it wont work!!!
could someone compile it and send the program to me? or send me a compiler or correct the code (code shoud be correct)
Code:
#include <iostream>
#include <ctime>
#include <windows.h>
POINT Center, CurPos;
bool FirstTime=true;
int SendKeyPress(unsigned short KeyCode, bool IsDown);

int main()
{
	printf(”Press Mouse4 to set a center point/n”);
	while(true)
	{
	     if(GetAsyncKeyState(VK_XBUTTON) & (1<< 15))
	     {
		if(FirstTime)
		{
			GetCursorPos(&center);
			FirstTime=false;
			printf(”Strafe Bot Activated/nHold Mouse4 to strafe!/n);
			MessageBox(NULL, “Center Position Set”, “Strafe Bot”, NULL);
		}
		GetCursorPos(&CurPos);
		if(CurPos.x > Center.x)
		{
			sendKeyPress(0x20, true);
			Sleep(1);
			SemdKeyPress(0x20,  false);
		}
		else if(CurPos.x < Center.x)
		{
			SendKeyPress(0x1e, true);
			Sleep(1);
			SendKeyPress(0x1e, false);
		}

	}
	}
	return 0;
}

int SendKeyPress(unsigned short KeyCode, bool KeyDown)
{
       INPUT InputData;
       InputData.type				= INPUT_KEYBOARD;
       InputData.ki.wScan				=KeyCode;
       InoutData.ki.time		=time(NULL);
       InputData.ki.dwExtraInfo = 0;
	if(KeyDown)
	     InputData.ki,dwFlags = KEYEVENTF_SCANCODE;
	else
	     InputData.ki.dwFlags = KETEVENTF_SCANCODE | KEYEVENTF_KEYUP;
	return SendInput(1, &InputData, Sizeof(InputData));
}
If it doesn't work im pretty sure something's off.
Probably Made a mistake.
Holy....the above two comments....


Obviously it's either a syntax error or a setting error.
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us