|
Post by paramon on Apr 23, 2016 8:40:33 GMT
This will be great to have programming way to start app.
Like:
startApp ("com.appautomatic.ankulua.trial")
This would simplify Sharing. As well as the creation of chains of multiple applications (games).
Perhaps there is such a possibility. And I just have not found it.
|
|
|
Post by AnkuLua on Apr 23, 2016 13:38:28 GMT
This will be great to have programming way to start app. Like: startApp ("com.appautomatic.ankulua.trial") This would simplify Sharing. As well as the creation of chains of multiple applications (games). Perhaps there is such a possibility. And I just have not found it. Thanks for suggestion.Will study it.
|
|
|
Post by zpt on Apr 25, 2016 1:52:11 GMT
Also it would be great if there were a way to detect if specified app is running. My game sometimes just crashes.
|
|
scott
New Member
Posts: 4
|
Post by scott on May 20, 2016 15:58:07 GMT
Would love this functionality as well!
|
|
Kako
Contributors
Posts: 105
|
Post by Kako on May 22, 2016 14:08:17 GMT
Also it would be great if there were a way to detect if specified app is running. My game sometimes just crashes. +1!
|
|
|
Post by AnkuLua on May 26, 2016 23:56:19 GMT
Good news. Version 5.7.0 supports startApp()
|
|
Kako
Contributors
Posts: 105
|
Post by Kako on May 27, 2016 11:51:09 GMT
Good news. Version 5.7.0 supports startApp() Nice job! Would you mind adding some way to check if the app is already open ( like zpt suggested)? Or even better: a function that returns the current app that's "on top"?
|
|
|
Post by AnkuLua on May 27, 2016 13:36:58 GMT
You can always start the app. If the app is already running, nothing will happen.
|
|
|
Post by zpt on May 31, 2016 20:50:15 GMT
You can always start the app. If the app is already running, nothing will happen. That's not the best option in my case. The game can crash in many different screens. If it crashed then script must perform some start up actions, if game not crashed, those aren't needed, so i still neeed to check if game crashed or not. And there is no common element for all possible game screens, now my script checking for three different elements for sure. But just relaunching the game is much more convinient now, thank you.
|
|
Kako
Contributors
Posts: 105
|
Post by Kako on May 31, 2016 22:16:51 GMT
You can always start the app. If the app is already running, nothing will happen. That's not the best option in my case. The game can crash in many different screens. If it crashed then script must perform some start up actions, if game not crashed, those aren't needed, so i still neeed to check if game crashed or not. And there is no common element for all possible game screens, now my script checking for three different elements for sure. But just relaunching the game is much more convinient now, thank you. By crash you mean it hangs, not force-closes?
|
|
|
Post by zpt on Jun 1, 2016 0:52:52 GMT
By crash you mean it hangs, not force-closes? Finding device showing homescreen, game still in running apps list, but switching to it just relaunches it with loading, connecting, etc. Sorry, not very familiar with android apps terminology.
|
|
Kako
Contributors
Posts: 105
|
Post by Kako on Jun 1, 2016 22:09:41 GMT
By crash you mean it hangs, not force-closes? Finding device showing homescreen, game still in running apps list, but switching to it just relaunches it with loading, connecting, etc. Sorry, not very familiar with android apps terminology. So you'll also need to be able to kill the app to make it start properly?
|
|
|
Post by AnkuLua on Jun 2, 2016 0:19:54 GMT
By crash you mean it hangs, not force-closes? Finding device showing homescreen, game still in running apps list, but switching to it just relaunches it with loading, connecting, etc. Sorry, not very familiar with android apps terminology. The list is recent apps, not running apps list.
|
|
|
Post by kumarke on Aug 2, 2017 8:21:42 GMT
Hi
Can I start an app according to clock time and if so please let me know how? Thank you
|
|
|
Post by AnkuLua on Aug 2, 2017 9:13:00 GMT
Try this
oclock = 0 + os.date("%H")
if (oclock == 8) then
-- do what you want end
|
|