Fromethius92

Hello everyone,

Is there an equivalent to SendKeys.Send in C++ I have looked into keybd_event and SendInput, but to my knowledge you can only send one key at a time with those functions.

Thanks for any help.

Edit: I'm not using the .Net Framework so I can't use any of that stuff.



Re: Visual C++ General SendKeys in C++

scor7910

Hi~.

I think keybd_event function is only way to send keyboard message.

Bye~~






Re: Visual C++ General SendKeys in C++

Bite Qiu - MSFT

Fromethius92 wrote:

Is there an equivalent to SendKeys.Send in C++ I have looked into keybd_event and SendInput, but to my knowledge you can only send one key at a time with those functions.

you can make a wrapper class base on keybd_event or SendInput to implement the functions of SendKeys.Send, or download and make use of this class: http://www.codeproject.com/cpp/sendkeys_cpp_Article.asp

hope it helps

rico