I need a program that presses down the space bar,
I found this for SHIFT
#include <iostream>
#include<windows.h>
#include<fstream>
#include<iomanip>
#include<time.h>
using namespace std;
int main()
{
keybd_event(VK_SHIFT,0x10,0,0); //shift press
cin.get();
keybd_event(VK_SHIFT,0x10,KEYEVENTF_KEYUP,0);// shift release
return 0;
}
But I can't seem to find the VK_? and 0x?? codes for space.
Does anyone know the codes or know where I could find them?
Also, I was wondering if there's a way to check what time it is.