Quote Originally Posted by golanshahar
true, however if you will read in the MSDN you would see that:

Quote Originally Posted by MSDN
Windows NT/2000/XP: This function has been superseded. Use SendInput instead.


Cheers
I don't think it is a good idea to use SendInput, because if you use SendInput, your application will need a different version on Windows 95/98/Me.
And you can't assume that everybody has Windows XP.
In a few years, maybe, but for now compatibility is important.
Just use SendInput if you need features that keybd_event don't provide.
And since keybd_event can be easily implemented using SendInput, i don't think that microsoft will remove this function from the API before a long time.