aks
2006-11-19, 05:05 AM
I have a VBA application that monitors keyboardstates for manipulating entities in a selection set. It checks the pressed state bit for certain keys and then clears them as it manipulates the selection set. One problem is that the pressing of certain keys, all the letter keys and the spacebar for example, are seen by AutoCAD when the VBA exits even though the VBA cleared these keys when it saw them. When the VBA exits AutoCAD sees the keypresses all at once and tries to interpret these keypresses as commands. There is no problem when the keypresses are not valid commands but there is the possiblity they might be a valid command. It there a way to flush these keypresses so that AutoCAD does not see them? Perhaps there is a way to inject a keypress so that the keypresses AutoCAD does see are always nonsense to AutoCAD?