I did paste the code over the actual password by using ctrl+v, worked fine. So my guess maybe they clicked on the dots and made the old game password "unselected" and pasted the code in the middle of the used game password.
if (OpenClipboard(NULL))
{
HANDLE data = GetClipboardData(CF_UNICODETEXT);
if (data)
{
wchar_t *ch = (wchar_t *) GlobalLock(data);
if (ch)
{
[ ... some code in here to read the characters into a buffer ... ]
GlobalUnlock(data);
[ ... some code in here to add the characters as if typed ... ]
}
}
CloseClipboard();
}