Originally Posted by Dragoon_42
I think I can help you with the control enter thing:
This simulates a virtual keyboard, more accurately it simulates two ones, a control press down, a return press down, a return up ppress, and a control up press. this will work for input into differenc programs, but it's a bit akward to use cause it's exactly like a keyboard. for "d", you say:
keybd_event(VK_CONTROL, 0, 0, 0);
keybd_event(VK_RETURN, 0, 0, 0);
keybd_event(VK_RETURN, 0, KEYEVENTF_KEYUP, 0);
keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0);
but for a capital D you have to put in a shift command with that.
keybd_event('D', 0, 0, 0);
keybd_event('D', 0, KEYEVENTF_KEYUP, 0);
one of these headers are used:
don't know which one tho.
as for the '\' question, I think the compiler should give you a warning/error about illegal escape sequences if you've encountered one, I think, well that has been my experience.
hope that helps!!