|
Post by Mercobots on Apr 13, 2018 12:20:46 GMT
Enable immersive mode and try again
|
|
|
Post by ruriko on Apr 30, 2018 6:30:37 GMT
Where is the script located on PC? I connect my phone to pc but I can't find the files on pc
|
|
|
Post by AnkuLua on Apr 30, 2018 6:54:33 GMT
Please download the script on phone browser directly.
|
|
|
Post by aegisofrime on May 4, 2018 5:32:51 GMT
Hi,
Firstly, thanks for the Snap and Play script.
I'm wondering how do I do the following.
I have a set of actions, that I want to do once, and only once. After this set finishes, it moves on to a different set of actions.
So basically,
A -> B -> C
After A is done, no actions from A should be performed. The same goes for the other actions. How do I do this? Thank you!
|
|
|
Post by AnkuLua on May 4, 2018 6:19:37 GMT
Try to modify the generated .luar as following for A
touchList[index] = {target = "A.png", region = Region(774, 493, 150, 150), id = "A", action = 'if (not Apng) then click(matchResult); Apng = true'}
Do similarly to B and C.
|
|
|
Post by kang08 on May 16, 2018 3:23:27 GMT
Hi, how do i add timer into the script that will kill the app every hour. thank you
|
|
|
Post by AnkuLua on May 16, 2018 4:01:56 GMT
Hi, how do i add timer into the script that will kill the app every hour. thank you Something like this if (not timer) then timer = Timer() elseif (timer:check() > 3600) then killApp(...); timer:set() end Change the ... to the app.
|
|
|
Post by kang08 on May 16, 2018 10:17:50 GMT
Hi, how do i add timer into the script that will kill the app every hour. thank you Something like this if (not timer) then timer = Timer() elseif (timer:check() > 3600) then killApp(...); timer:set() end Change the ... to the app. Hi, thanks for your quick response. but the code doesn't work. How about killing the app after no image is found for a few minutes? because the app will go not responding after few running for few hours.
|
|
|
Post by ninomax0x on May 23, 2018 11:07:25 GMT
Is there anyway to increase the script's speed?
|
|
|
Post by AnkuLua on May 23, 2018 12:19:11 GMT
Try "(BETA) Fast tap and touch" in AnkuLua settings.
|
|
|
Post by zipper on May 27, 2018 18:58:22 GMT
I have not yet learned how to use tables in Lua so i need some help with this thing. The snap and play works very well for me to extract images and regions that i copy to my own script. Now I'm interested in using the rows generated in the luar by copying them and use them in a ordinary lua file where i can add wait and other things needed. So if someone would be so kind and show me how to perform a simple click or existsClick to a row i would be grateful.
|
|
|
Post by alfred32 on Jun 6, 2018 12:09:01 GMT
What is the ID used for? Something in tandem with index for moving around? Thanks!
|
|
|
Post by AnkuLua on Jun 6, 2018 14:55:08 GMT
What is the ID used for? Something in tandem with index for moving around? Thanks! For normal user, you can just ignore "id" in generated .luar files. It's used in the main snap and play script.
|
|
|
Post by alfred32 on Jun 6, 2018 22:58:14 GMT
What is the ID used for? Something in tandem with index for moving around? Thanks! For normal user, you can just ignore "id" in generated .luar files. It's used in the main snap and play script. Can we ignore the id even if we are combining different scripts and injecting our own commands? It does throw an error if there is no id... is it OK to just assign id=1 to all items then? Thanks!
|
|
|
Post by AnkuLua on Jun 7, 2018 4:43:33 GMT
No. Each one should have different ID.
|
|