Hi,
You cannot do this. MSComm reads and writes serial data. A digit pressed
is a DTMF tone-pair, not a serial character. Some modems (only a very few)
have the capability to decode DTMF tones and to convert them to serial data.
However, this depends totally on hardware, and has nothing to do with MSComm
or any other software bit.
--
Richard Grier (Microsoft Visual Basic MVP)
See
www.hardandsoftware.net for contact information.
Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.