got it working for the most part, still need to add support for special chars like ":" and "." and clean it up some.
Code:
for(int c=0; c<256; c++)
{
if(S1[c]!='\0')
{
//cout << (int)S1[c] << "\n"; --no longer needed for now
if(((int)S1[c]>=65)&&((int)S1[c]<=90)) // Capitol letter, Must Press Shift sucka!
keybd_event(VK_SHIFT, 0, 0 ,0);
else //letter is lowercase
{
S1[c] = toupper( S1[c] ); // converts lowercase to upper so that it can actually be lowercase (dont ask)
}
keybd_event(S1[c], 0, 0, 0); // press down our key
keybd_event(S1[c], 0, KEYEVENTF_KEYUP, 0); //and remove our virtual finger from key
if(((int)S1[c]>=65)&&((int)S1[c]<=90)) // it was a cap, Must Release Shift sucka!
keybd_event(VK_SHIFT, 0, KEYEVENTF_KEYUP ,0);
}
else
{
c=5000;
}
}