recognise the message sent by a contactor

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

recognise the message sent by a contactor

Post by jmburnod » Fri Nov 13, 2015 9:04 pm

Hi All,
I search the best way to recognise the message sent by a contactor.
Some contactors send a string ">1" . Other send something else but they send often a string with several chars.

I tried rawkeydown but it catch only ">" for this exemple.
I hope this contactor write the string in the selectedchunk
If that is the case I could get this fld after rawkeydown

Others idea are welcome

Best regards
Jean-Marc
https://alternatic.ch

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: recognise the message sent by a contactor

Post by Dixie » Fri Nov 13, 2015 11:38 pm

Jean-Marc...

What do you mean by a 'contactor' ?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10354
Joined: Wed May 06, 2009 2:28 pm

Re: recognise the message sent by a contactor

Post by dunbarx » Fri Nov 13, 2015 11:57 pm

What do you mean by a 'contactor' ?
Me, too.

At first glance, I thought it was an external switch.

Craig

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: recognise the message sent by a contactor

Post by jmburnod » Sat Nov 14, 2015 12:17 am

Dears Two,
Thank you one more for help
I think Craig is right, switch is a better word to describe what is does:D
There are many sort of contactors we use to make app accessible for people who can produce only one input.
In this case it is a bluetooth contactor we can use with iPad.
Kind regards
Jean-Marc
https://alternatic.ch

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: recognise the message sent by a contactor

Post by jacque » Sat Nov 14, 2015 6:10 pm

You might be able to use the keysDown function.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: recognise the message sent by a contactor

Post by jmburnod » Sat Nov 14, 2015 6:39 pm

Thanks Jaqueline, you refresh my memory.
I forgot this way :roll:
It seems that is the way
Best regards
Jean-Marc
https://alternatic.ch

Post Reply