Project Description
The Windows Input Simulator provides a simple (C++) interface to simulate Keyboard or Mouse input there's a simple programming model for sending multiple keystrokes.

simulate any Keyboard input including Control, Alt, Shift, Tab, Enter, Space, Backspace, the Windows Key, Caps Lock, Num Lock, Scroll Lock, Volume Up/Down and Mute, Web, Mail, Search, Favorites, Function Keys, Back and Forward navigation keys, Programmable keys and any other key defined in the
Virtual Key table


Example: Keybord
   public static void Main()
   { 
        CKeyboardSimulator sim;
	sim.ModifiedKeyStroke(VirtualKeyCode::LWIN, VirtualKeyCode::VK_R);
	Sleep(1000);
	sim.TextEntry(L"notepad");
	Sleep(1000);
	sim.KeyPress(VirtualKeyCode::RETURN);
	Sleep(1000);
	sim.TextEntry(L"These are your orders if you choose to accept them...");
	sim.TextEntry(L"This message will self destruct in 5 seconds.");
	Sleep(5000);
	sim.ModifiedKeyStroke(VirtualKeyCode::MENU, VirtualKeyCode::SPACE);
	sim.KeyPress(VirtualKeyCode::DOWN);
	sim.KeyPress(VirtualKeyCode::RETURN);
	int i = 50;
	while (i-- > 0) sim.KeyPress(VirtualKeyCode::DOWN);
	sim.KeyPress(VirtualKeyCode::RETURN);
	Sleep(1000);
	sim.ModifiedKeyStroke(VirtualKeyCode::MENU, VirtualKeyCode::F4);
	sim.KeyPress(VirtualKeyCode::VK_N);
   }


A big thanks to michaelnoonan : for the Original Project in C#.

Last edited Jan 17, 2013 at 5:23 PM by Xolen, version 2