Clearing the keyboard buffer after sendkeys

C

coetzee.evert

(Sorry for double post. I realised only later that this group existed)

I'm using sendkeys in excel to send keystrokes to an application. I
don't send them with the WAIT as yes so control returns immediately
to
excel even though the other application is still processing the sent
keys.


Sometimes the other application goes haywire and I would like to
clear
the keyboard buffer of it before it handles all the remaining keys
incorrectly. Is there any way I cando they through excel?


E.g. press a butten and it flushes the keystrokes buffer of the last
application that you sent the keys to?


I presume there must be an API somewhere for it.


Regards
CE Auke
 
D

Dave Peterson

Randy Birch has a site dedicated to VB.
http://vbnet.mvps.org/

You may want to search there.

Or search the VB newsgroups for keyboard buffer--or even post directly in the VB
newsgroups.

(Or you can wait for someone to post a better reply here.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top