Re: OT: How to detect a keypress, and in which language?

2011-07-08 Thread Cousin Stanley
Kent West wrote: I want to write a basic little Morse Code key program to put into the newsletter of the local amateur radio (ham) club. It'd be nice if it were cross-platform A few debian possibles $ apt-cache search morse code Python-based programs are good

Re: OT: How to detect a keypress, and in which language?

2011-07-07 Thread Kent West
On 7/7/11 12:58 AM, Kent West wrote: In a very old thread from January of 2008 (http://www.linux-archive.org/debian-user/41227-ot-how-detect-keypress-language.html), I asked the following question: snip I want to write a basic little Morse Code key program ... snip case 37: !-- Arrow

Re: OT: How to detect a keypress, and in which language?

2011-07-07 Thread Kent West
On 7/7/11 1:04 AM, Kent West wrote: Oh, forgot to mention, I got the dit.wav and dah.wav from http://www.geekpedia.com/tutorial138_Get-key-press-event-using-JavaScript.html, Beep 6 and Beep 7 (renamed and put in the same directory as the morse.html file). D'oh! Pasted the wrong URL.

Re: OT: How to detect a keypress, and in which language?

2011-07-07 Thread Kent West
On 7/7/11 12:58 AM, Kent West wrote: We pretty much decided it couldn't be easily done, but here's a very dirty, unclean method that at least shows the concept (modified from code found at http://www.geekpedia.com/tutorial138_Get-key-press-event-using-JavaScript.html). And

Re: OT: How to detect a keypress, and in which language?

2008-01-27 Thread Hugo Vanwoerkom
Andrew Sackville-West wrote: On Sat, Jan 26, 2008 at 12:32:00PM -0600, Hugo Vanwoerkom wrote: Douglas A. Tutty wrote: On Sat, Jan 26, 2008 at 11:22:05AM -0600, Kent West wrote: Mmm; I wonder if it could be done with the mouse buttons instead of the keyboard, or if the same problem exists

Re: OT: How to detect a keypress, and in which language?

2008-01-27 Thread Andrew Sackville-West
On Sun, Jan 27, 2008 at 05:04:50AM -0600, Hugo Vanwoerkom wrote: Andrew Sackville-West wrote: On Sat, Jan 26, 2008 at 12:32:00PM -0600, Hugo Vanwoerkom wrote: Douglas A. Tutty wrote: On Sat, Jan 26, 2008 at 11:22:05AM -0600, Kent West wrote: Mmm; I wonder if it could be done with the mouse

Re: OT: How to detect a keypress, and in which language?

2008-01-26 Thread Hugo Vanwoerkom
Kent West wrote: Hugo Vanwoerkom wrote: Kent West wrote: Too bad; I think a lot of the hams would have enjoyed writing a simple little program to turn their PCs into a Morse keyer. I am no radio hammmer (?) no morse code since I was a boyscout 60 years ago. But I would think that one

Re: OT: How to detect a keypress, and in which language?

2008-01-26 Thread Hugo Vanwoerkom
Daniel Burrows wrote: On Sun, Jan 20, 2008 at 04:27:50PM -0600, Hugo Vanwoerkom [EMAIL PROTECTED] was heard to say: Turns out that keypress access *is* the hardest. You have that in Qt but you have to be running in X and within a widget. It's ridiculous to do all that to find out if a key

Re: OT: How to detect a keypress, and in which language?

2008-01-26 Thread Hugo Vanwoerkom
Hugo Vanwoerkom wrote: Kent West wrote: Hugo Vanwoerkom wrote: Kent West wrote: Too bad; I think a lot of the hams would have enjoyed writing a simple little program to turn their PCs into a Morse keyer. I am no radio hammmer (?) no morse code since I was a boyscout 60 years ago. But I

Re: OT: How to detect a keypress, and in which language?

2008-01-26 Thread Kent West
Hugo Vanwoerkom wrote: Hugo Vanwoerkom wrote: Kent West wrote: The space bar as a keyer would be fine as a straight-key (just the single up-down paddle you see in the movies about the Old West), but I was thinking more along the lines of emulating a paddle (two side-ways keys mounted

Re: OT: How to detect a keypress, and in which language?

2008-01-26 Thread Douglas A. Tutty
On Sat, Jan 26, 2008 at 11:22:05AM -0600, Kent West wrote: Mmm; I wonder if it could be done with the mouse buttons instead of the keyboard, or if the same problem exists there What's the problem using two status lines on a serial port? AFAIK, those are totally unbuffered and the

Re: OT: How to detect a keypress, and in which language?

2008-01-26 Thread Hugo Vanwoerkom
Douglas A. Tutty wrote: On Sat, Jan 26, 2008 at 11:22:05AM -0600, Kent West wrote: Mmm; I wonder if it could be done with the mouse buttons instead of the keyboard, or if the same problem exists there What's the problem using two status lines on a serial port? AFAIK, those are totally

Re: OT: How to detect a keypress, and in which language?

2008-01-26 Thread Andrew Sackville-West
On Sat, Jan 26, 2008 at 12:32:00PM -0600, Hugo Vanwoerkom wrote: Douglas A. Tutty wrote: On Sat, Jan 26, 2008 at 11:22:05AM -0600, Kent West wrote: Mmm; I wonder if it could be done with the mouse buttons instead of the keyboard, or if the same problem exists there what does xev use?

Re: OT: How to detect a keypress, and in which language?

2008-01-25 Thread Daniel Burrows
On Sun, Jan 20, 2008 at 04:27:50PM -0600, Hugo Vanwoerkom [EMAIL PROTECTED] was heard to say: Turns out that keypress access *is* the hardest. You have that in Qt but you have to be running in X and within a widget. It's ridiculous to do all that to find out if a key is pressed. I have

Re: OT: How to detect a keypress, and in which language?

2008-01-24 Thread Hugo Vanwoerkom
Kent West wrote: Hugo Vanwoerkom wrote: Kent West([EMAIL PROTECTED]) is reported to have said: All I want to do is to detect two keys, say the left- and right-shift keys, or the and keys. For one key, a short dit audio tone would be generated, and for the other key, a longer dah audio tone

Re: OT: How to detect a keypress, and in which language?

2008-01-24 Thread Kent West
Hugo Vanwoerkom wrote: Kent West wrote: Too bad; I think a lot of the hams would have enjoyed writing a simple little program to turn their PCs into a Morse keyer. I am no radio hammmer (?) no morse code since I was a boyscout 60 years ago. But I would think that one would rather use let's

Re: OT: How to detect a keypress, and in which language?

2008-01-22 Thread Hugo Vanwoerkom
Ken Irving wrote: On Sun, Jan 20, 2008 at 04:27:50PM -0600, Hugo Vanwoerkom wrote: Wayne Topa wrote: Kent West([EMAIL PROTECTED]) is reported to have said: Hugo Vanwoerkom wrote: Kent West wrote: All I want to do is to detect two keys, say the left- and right-shift keys, or the and keys.

Re: OT: How to detect a keypress, and in which language?

2008-01-22 Thread Kent West
Hugo Vanwoerkom wrote: Kent West([EMAIL PROTECTED]) is reported to have said: All I want to do is to detect two keys, say the left- and right-shift keys, or the and keys. For one key, a short dit audio tone would be generated, and for the other key, a longer dah audio tone would be

Re: OT: How to detect a keypress, and in which language?

2008-01-22 Thread Douglas A. Tutty
On Tue, Jan 22, 2008 at 05:55:21PM -0600, Kent West wrote: I had thought about dropping the cross-platform requirement, and just suggesting to everyone to use a Knoppix LiveCD to do this PC-cum-Morse-keyer program, but from this discussion, and my own personal failure to find a solution,

Re: OT: How to detect a keypress, and in which language?

2008-01-21 Thread Ken Irving
On Sun, Jan 20, 2008 at 04:27:50PM -0600, Hugo Vanwoerkom wrote: Wayne Topa wrote: Kent West([EMAIL PROTECTED]) is reported to have said: Hugo Vanwoerkom wrote: Kent West wrote: All I want to do is to detect two keys, say the left- and right-shift keys, or the and keys. For one key, a

Re: OT: How to detect a keypress, and in which language?

2008-01-21 Thread Dotan Cohen
On 19/01/2008, Kent West [EMAIL PROTECTED] wrote: Hey folks! Apologies for the very off-topic post; I've been googling for the answer off-and-on for two days unsuccessfully, so I've finally decided to turn to the smartest group of people around. I want to write a basic little Morse Code key

Re: OT: How to detect a keypress, and in which language?

2008-01-21 Thread Joseph
As others suggested, check python. It's not to difficult and most of it is cross platform. There are several ways to get chars, both blocking and non-blocking. I was thinking about curses, but there are other ways. From python docs: While curses is most widely used in the Unix environment,

Re: OT: How to detect a keypress, and in which language?

2008-01-21 Thread Dotan Cohen
On 21/01/2008, Joseph [EMAIL PROTECTED] wrote: silently ignore keypresses while the speaker is already beeping. The married men on the list will no doubt recognize that tactic. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

Re: OT: How to detect a keypress, and in which language?

2008-01-20 Thread Hugo Vanwoerkom
Wayne Topa wrote: Kent West([EMAIL PROTECTED]) is reported to have said: Hugo Vanwoerkom wrote: Kent West wrote: All I want to do is to detect two keys, say the left- and right-shift keys, or the and keys. For one key, a short dit audio tone would be generated, and for the other key, a

Re: OT: How to detect a keypress, and in which language?

2008-01-19 Thread Hugo Vanwoerkom
Kent West wrote: Hey folks! Apologies for the very off-topic post; I've been googling for the answer off-and-on for two days unsuccessfully, so I've finally decided to turn to the smartest group of people around. I want to write a basic little Morse Code key program to put into the

Re: OT: How to detect a keypress, and in which language?

2008-01-19 Thread Kent West
Hugo Vanwoerkom wrote: Kent West wrote: All I want to do is to detect two keys, say the left- and right-shift keys, or the and keys. For one key, a short dit audio tone would be generated, and for the other key, a longer dah audio tone would be generated. I need to bypass the keyboard

Re: OT: How to detect a keypress, and in which language?

2008-01-19 Thread Hugo Vanwoerkom
Kent West wrote: Hugo Vanwoerkom wrote: Kent West wrote: All I want to do is to detect two keys, say the left- and right-shift keys, or the and keys. For one key, a short dit audio tone would be generated, and for the other key, a longer dah audio tone would be generated. I need to bypass

Re: OT: How to detect a keypress, and in which language?

2008-01-19 Thread Wayne Topa
Kent West([EMAIL PROTECTED]) is reported to have said: Hugo Vanwoerkom wrote: Kent West wrote: All I want to do is to detect two keys, say the left- and right-shift keys, or the and keys. For one key, a short dit audio tone would be generated, and for the other key, a longer dah audio

OT: How to detect a keypress, and in which language?

2008-01-18 Thread Kent West
Hey folks! Apologies for the very off-topic post; I've been googling for the answer off-and-on for two days unsuccessfully, so I've finally decided to turn to the smartest group of people around. I want to write a basic little Morse Code key program to put into the newsletter of the local

Re: OT: How to detect a keypress, and in which language?

2008-01-18 Thread Douglas A. Tutty
On Fri, Jan 18, 2008 at 05:30:59PM -0600, Kent West wrote: I want to write a basic little Morse Code key program to put into the newsletter of the local amateur radio (ham) club. It'd be nice if it were cross-platform, and preferably easy-peazy on Linux and maybe just as easy on OS/X and

Re: OT: How to detect a keypress, and in which language?

2008-01-18 Thread Kent West
Douglas A. Tutty wrote: On Fri, Jan 18, 2008 at 05:30:59PM -0600, Kent West wrote: I want to write a basic little Morse Code key program to put into the newsletter of the local amateur radio (ham) club. It'd be nice if it were cross-platform, and preferably easy-peazy on Linux and maybe