I am able to make them
Code:
#include <iostream>
#include <Windows.h>
#include <time.h>

using namespace std;
int main()
{
	while(true)
	{
		if(GetAsyncKeyState(VK_LBUTTON)&0x8000)
		{
			mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 10, 0, 0);
			Sleep(60);
			mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
			Sleep(20);
			
		}
	}
}
Is there any way I can get a separate left click function only affected by the mouse, because it seems these two cancel each other out >> mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0); and if(GetAsyncKeyState(VK_LBUTTON)&0x8000); >>

Btw, I cant use the mouse driver to change the leftclickbutton to something else and i need the script to output left clicks.. :P

i know this can be easily made with AHK and other macro programs, but i want to include this into a larger project..

I am sorry for possible typos, Norwegian speaking man here :P

Thanks in advance