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.

Nevermind, found the code for space and it works.

But is there a way to get what time it is?

I want it to wait until the next minute, and then do something.
How do I do that?

If I start it at 20:55 I want it to do something at 20:56

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.