case WM_HOTKEY:
if(wParam == 1)
{
hEdit = FindWindowEx(hwnd, NULL, "Edit", NULL);
GetWindowText(hEdit, t, sizeof(t));
MessageBox(hwnd, t, " ", MB_OK);
r = 0;
while(r <= sizeof(t))
{
if(isascii(arr[r]) == 0)
break;
arr[r] = GetLetterValue(&t[r]);
itoa(arr[r], temp, 10);
MessageBox(0, temp, "Error", MB_OK);
r++;
}}
break;
Thats my hotkey function to fill t with the text in hEdit and then get the number rep of each letter. The problem is its only printing the first 3 letters. So say i put abcde in the hEdit. it will Message out 1, 2, 3 then stop...any ideas?