I'm using Windows 7, and I need to know how to make my C++ program accept input without having to hit enter. I was told to come here because it might require the use of virtual keys, or the Windows API. Problem is I have no idea what either of those are.
Windows API handles thing such as Windows, keyboard input, message boxes, Buttons, Graphics in general, C++ works in the background. thats what API stands for is Application Programming Interface. I would help you more but it's been such a long time since i did win32 programming i forgot quite a bit. but someone here will be able to help you more.
Yea this seems a bit over my head. If someone could walk me through it, or direct me to somewhere where I could start from the ground up with this stuff, I would be grateful.
I found a program on my computer i made a long time ago that when you press a it says you pressed a but not when you press anything else. I believe this is along the lines of what you want.
Ok, if you cant let me see your program and maybe i can try to get it to work.
EDIT: you can also change which key you want pressed by changing the hex value in the parameters of GetAsyncKeyState Look at this for a list of them all
Okay, I can't figure out how to make what you've done trigger my timer to reset.
Basically, my program is a countdown timer, and my goal is to get the "v" key to reset it without having to press enter. Here it is