how to simulate a shortcut command in android??

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Fasasoftware
Posts: 203
Joined: Mon Oct 31, 2011 9:36 pm
Location: Italy
Contact:

how to simulate a shortcut command in android??

Post by Fasasoftware » Mon Jan 14, 2013 10:33 pm

is there a way to command a sequence of keys like ctrl+o, for example to open a window in firefox..or ctrl+c or do other task...using android?? in other words...how i can send command to android but not only to a web browser....????

i thank you a lot...

cheers,

Lestroso :oops:

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: how to simulate a shortcut command in android??

Post by Mark » Wed Jan 16, 2013 2:14 am

Hi Lestroso,

I don't think you're supposed to be able to do that, because it would be a huge security risk. You could, however, use a custom protocol to open an app and add a number of parameters to the URL. If you are the author of the app responding to the custom protocol, then you could write a script that responds to the parameters embedded in the URL.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Fasasoftware
Posts: 203
Joined: Mon Oct 31, 2011 9:36 pm
Location: Italy
Contact:

Re: how to simulate a shortcut command in android??

Post by Fasasoftware » Wed Jan 16, 2013 6:40 am

Hi Mark....can you could make a simple example script....to make me understand well you say to me???


thanks a lot...


Lestroso :oops:

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: how to simulate a shortcut command in android??

Post by Mark » Thu Jan 17, 2013 3:54 pm

Hi Lestroso,

You can enter the custom URL scheme in the standalone settings (in LC 5.5 or later) and use a simple URL:

Code: Select all

launch URL "lestroso:_some_url?some=parameters&to=parse"
Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Fasasoftware
Posts: 203
Joined: Mon Oct 31, 2011 9:36 pm
Location: Italy
Contact:

Re: how to simulate a shortcut command in android??

Post by Fasasoftware » Thu Jan 17, 2013 4:25 pm

Thanks mark.....but i needed another solution...it's not like have in my idea......but thanks a lot agail


Lestroso :D

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: how to simulate a shortcut command in android??

Post by Mark » Thu Jan 17, 2013 10:08 pm

Hi Lestroso,

Sorry, I don't understand your reply. What do you need?

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply

Return to “Android Deployment”