>>Just a wild a** guess here! If you have a IR serial port on your computer you could use mscomm to read it and and you could save the results to a file for latter analysis.
>>
>>Glenn
>>
>>>I have IR remote control (included on the PCTVRAVE package from pinaclesys ) and I want to be able to recognize wich key has been pressed. Does any one experienced something like this? Any tip will be a great help.
>>>Thank´s in advance,
>>>NPedro
>
>Thank's for help, but...still need help.
>
>I'm trying to get data from COM1 with code below but nothing happen.
>Any suggestion?
>Thank's in adavnce,
>NPedro
>
>
>****************************
>Do WHILE !OK
> IF THISFORM.c.InBufferCount > 0
> cChar = THISFORM.c.Input
> OK = .T.
> Endif
>Enddo
>
>wait wind "Result: " + cChar
>****************************
your variable names are somewhat less than descriptive, but it appears
that "c" refers to an MSComm control on your form. what physical device
do you have attached to your COM1 port ? have you established all or
any of these other settings ?
MSComm.port (port number)
MSComm.settings (baud rate, parity, start/stop bits)
MSComm.inputlen
MSComm.inputmode
MSComm.portopen (= .t. to use = .f. when done)
e.g. have you matched your 'settings' to that of the physical device ?
are you _sure_ the characters are getting TO your COM1 port ?
if you do a lot of this kind of thing, a regular breakout box is an
inexpensive investment. better yet, if you have an old ascii monitor,
you can wire up a tap on the rs232 cable and watch exactly what characters
are passing to or from or both.
patrick