cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Trying to use keyboard space input if a
Trying to use keyboard space input if a condition is met
Nov 12, 2012 at 10:19am UTC
h4344
(46)
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?
Nov 12, 2012 at 12:11pm UTC
guestgulkan
(2942)
You could send or post yourself a WM_CHAR message;
Example:
PostMessage(hWnd, WM_CHAR, VK_SPACE, 0);
Topic archived. No new replies allowed.