Solved

Sending a ctrl+(key) to a serial port

Posted on 2003-11-25
2
200 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
ID: 9816749
Have you tried sending chr$(7)?
0
 

Author Comment

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

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VBA filters 2 59
How to compare ms sql hashbytes results within vb6 5 73
How to produce a SHA-1 hash function in vb6 in order to save it to a table 8 41
vbModal 12 51
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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

808 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