MSDN win key code: https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx Some sendinput C/C++ example: https://batchloaf.wordpress.com/2012/10/18/simulating-a-ctrl-v-keystroke-in-win32-c-or-c-using-sendinput/ https://batchloaf.wordpress.com/2013/02/13/sending-a-key-to-a-window-thats-not-in-focus-c-program/