Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arbitrary start/end beep
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00779104
Message ID:
00780560
Views:
14
Hi Kamil,

As I understand you turn sound on in MouseDown event, and turn it off in MouseUp event. Definitely Fox has no time to react.

The ancient transmitting (telegraph) keys were based on this pure electrical/mechanical principle. Key down and up, down and up and so on, producing "dots" and "dashes". This is probably you want to implement.

In my opinion it is not a practical way because (1) you will get tired in a few minutes, (2) you will not reach a reasonable transmission rate, (3) your mouse device will pass away in 2 days.

I suggest you implement next level of a transmitting device -- so called "electronic" key. It has three positions: (1) neutral, no transmission; (2) continual "dots" transmitted; (3) continual "dashes" transmitted.

In other words, when left mouse button is pressed the event handler generates a continual chain of "dots", on right mouse button -- chain of "dashes". To transmit "7" as "--..." you press right button, keep it to produce two "dashes", release, press left button to produce three "dots".

* * *
And the most practical way is converting key clicks directly into Morse code. Your program automatically generates ".-" if pressed "A", "-..." if pressed "B" and so on.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform