?
Solved

Sending a ctrl+(key) to a serial port

Posted on 2003-11-25
2
Medium Priority
?
205 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 300 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Suggested Courses

719 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