Solved

i want to delete a messagequeue

Posted on 2006-07-07
3
135 Views
Last Modified: 2010-04-05
I want to send something over a serial port to a maschine.
But when i position the cnc maschine with the keypad, and press for some seconds the key,
the maschine move and move also if i don`t press the key anymore.
How can i delete this messagesqueue?

please help
0
Comment
Question by:Applicationmaker
3 Comments
 
LVL 10

Accepted Solution

by:
atul_parmar earned 250 total points
Comment Utility
It is due to the repeat count. So when you hold down a key for some time, your handler forwards all that keys to the serial port. So instead of clearing the message queue controlling the repeat count would be better solution.

This way you can control that if a specif key is held down for some time e.g. 1 sec then how much keystrock should be sent to the device.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video discusses moving either the default database or any database to a new volume.

728 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

8 Experts available now in Live!

Get 1:1 Help Now