>This could do the trick...I'll give it a try, my only concern is that it might kinda be a CPU hog...
>
INKEY() returns 0 immediately if no character is available for reading; just make sure to not specify a value as a parameter, and you've exhausted the buffer if CHRSAW() returns false - again no parameter to get the status immediately. Try something like:
LOCAL nNumChars, aKeyValArray[1]
nNumChars = 0
DO WHILE CHRSAW()
nNumChars = nNumChars + 1
DIMENSION aKeyValArray[nNumChars]
aKeyValArray[nNumChars] = INKEY()
ENDDO
>>>>Is there a way to get the items that are in the keyboard buffer?
>>>>
>>>
>>>Spin through with INKEY() to capture a value at a time; it's a destructive read, though so you'd need to reinsert the content via KEYBOARD or API calls to PostMessage() or keybd_event() to get them back to be procesed.