Solved

Sending a ctrl+(key) to a serial port

Posted on 2003-11-25
2
198 Views
Last Modified: 2010-05-01
I am trying to operate a cash drawer from a PC.  In the directions included to test its functionality, it says to type the following in the command prompt:

MODE COM1 96,n,8,2
(RETURN)
TYPE CON>COM1
(RETURN)
^G                                  =ctrl+G
(RETURN)

This method works perfectly, but I cannot get this command to send in VB via the mscomm control.  Thanks.
0
Comment
Question by:mkonops
2 Comments
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 75 total points
Comment Utility
Have you tried sending chr$(7)?
0
 

Author Comment

by:mkonops
Comment Utility
Thanks, I guess I was overcomplicating it.  I appreciate such a lightening fast response!
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now