I need two C++ functions which simulates keyboard input
**void TypeIn(wchar_t * Sequence);**
**Sequence -** is something which is "typed" - usual text in English with lower and upper case symbols.
**void HotKey(DWORD First, DWORD Second=NULL);**
**First** and **Second** here are virtual-key codes (VK_MENU and VK_TAB for single Alt+Tab simulation)
**Second** is optional in case I want to press just a single key (Enter for example).
* Realization have to be done with SendInput API.
* Where should be random delays between key downs and key ups and key presses to make the typing look natural.
* Code has to be as simple as possible and easy to read.
* No third party libraries are allowed, only Windows API and other Visual Studio built-ins.
Result should a Visual Studio C++ project with sources compiled to a test command line application which opens a Win+R window and type something where.