Solved

Sending a ctrl+(key) to a serial port

Posted on 2003-11-25
2
202 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 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

738 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