Trying to use keyboard space input if a condition is met

h4344 (41)
Im trying to auto press the space key on the keyboard if a certain if statement condition is met. Its really that simple i just have no idea how to go about doing it. Any ideas?
guestgulkan (2830)
You could send or post yourself a WM_CHAR message;

Example:
PostMessage(hWnd, WM_CHAR, VK_SPACE, 0);

Registered users can post here. Sign in or register to post.