Page 1 of 1

How can I initiate a phone call with livecode?

Posted: Wed May 21, 2014 5:10 pm
by trags3
How can I initiate a phone call with livecode?
Tom

Re: How can I initiate a phone call with livecode?

Posted: Wed May 21, 2014 5:13 pm
by Klaus
Hi Tom,

...
launch url "tel:123456789"
...
Mobile only!


Best

Klaus

Re: How can I initiate a phone call with livecode?

Posted: Wed May 21, 2014 5:24 pm
by trags3
Klaus wrote:Hi Tom,

...
launch url "tel:123456789"
...
Mobile only!


Best

Klaus
Hi Klaus,
Thanks, I knew it must be something simple.

Tom

Re: How can I initiate a phone call with livecode?

Posted: Wed May 21, 2014 8:01 pm
by dunbarx
I wonder if the OP was wishing for a LC "Dial" command, a la HC.

This generated DTMF tones which a phone could either directly "listen" to, by holding the handset near the computer's speaker, or the phone could be connected to the speaker output jack via an external device. I still use such gadgets today ("TurboDialers")

I see no such command exists, even as a legacy so that old HC stacks would not break, though they would certainly lose that function. I thought that ALL HC words were so treated.

Craig Newman

Re: How can I initiate a phone call with livecode?

Posted: Thu May 22, 2014 5:18 pm
by jacque
HC just played sound files to simulate the tones. You could export those and write a script that does the same thing.

Re: How can I initiate a phone call with livecode?

Posted: Thu May 22, 2014 5:31 pm
by dunbarx
Jacque.

Righto.

Craig

Re: How can I initiate a phone call with livecode?

Posted: Tue Jun 10, 2014 2:14 pm
by trags3
Klaus wrote:Hi Tom,

...
launch url "tel:123456789"
...
Mobile only!


Best

Klaus
Thanks Klaus, Just had another thought is there also a way to send a text message in the same way using a URL?

Tom

Re: How can I initiate a phone call with livecode?

Posted: Wed Jun 11, 2014 2:37 pm
by Mark
Hi Tom,

This script prepares an SMS:

Code: Select all

on mouseUp
   set the text of the templatefield to "This is a text message."
   put the htmlText of the templateField into myText
   put "+01234567890" into myNumber
   put "sms:" & myNumber & "?body=" & myText into myUrl
   reset the templateField
   launch url myUrl
end mouseUp
It doesn't send automatically. It just opens the SMS app, which should then be ready for sending. I think that sending an SMS directly would require an external.

Unfortunately, on my Windows 8 PC, it starts Skype RTE, which doesn't work for me and I have no option to link the SMS protocol to the desktop version of Skype, which would work for me (maybe I get it to work if I write a script to adjust the registry ;-) )

Kind regards,

Mark

Re: How can I initiate a phone call with livecode?

Posted: Wed Sep 16, 2015 6:35 am
by razvan
Hello Trags3!
For call a number on skype from your app you can use:

Code: Select all

on mouseUp
   put "callto://004**********" into tNumber
   launch url  tNumber
end mouseUp
For call a id skype from your app you can use:

Code: Select all

on mouseUp
   launch url "skype:echo123?call"
end mouseUp
All the best!
Razvan