hi
not sure how to mark this solved, but I got it. The neat thing about this solution is that if you put a loop around it, you can get all keystrokes in the buffer, not just the most recent. Even better, you can get mousecklicks.
The answer is the API function, PeekMessage.
Here's the declaration:
Example call:
You also need the TranslateMessage and FindWindow fuctions, constants, message data-structures, and a few other bits.
A full example:
http://www.mrexcel.com/forum/showthr...=1#post1264669
Doc:
http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
Cheers!
Bookmarks