|
Post by nata488 on Sept 19, 2017 2:24:39 GMT
Include this code in your script, it will load up common lib functions. luaLib = loadstring(httpGet("https://raw.githubusercontent.com/mercobots/luaLib/master/luaLib.min.lua")) luaLib() Then use: btn_back() anywhere you want in the code to "press back" hi, can i add this to snay and play?
|
|
|
Post by Exilereven on Sept 19, 2017 3:05:28 GMT
I'm not sure on that I don't use it for scripting very often. I'm sure you manually edit one of your play backs to include a btn_back() somehow.
|
|
|
Post by nata488 on Sept 19, 2017 3:11:28 GMT
sorry i dont have much knowledge about writing a script or manually adding but thanks for the help.
|
|
|
Post by nata488 on Sept 19, 2017 12:18:35 GMT
hi admin,
Is there away to add a back button activation on snap and play if a certain image was found, some online games had a ads pop out sometimes and the only way to close the ads is clicking the back button.
|
|
|
Post by AnkuLua on Sept 19, 2017 14:57:29 GMT
You should modify the generated luar. keyevent(4) is the back button.
Here is one example for pressing back button if 3.png found.
touchList[index] = {target = "3.png", region = Region(610, 314, 150, 150), id = "3", action = 'keyevent(4)'}
What's the game?
|
|
|
Post by nata488 on Sept 19, 2017 19:53:33 GMT
what section in snap and play luar should i put this code, sorry im kinda new in modifying the script.
i cant tell the game yet for a while cuz the game can detect root, and the developers in the game strict using any kind of macros. That is i was happy that i found ankulua.
|
|
|
Post by AnkuLua on Sept 19, 2017 23:53:56 GMT
You said "Is there away to add a back button activation on snap and play if a certain image was found"
Modify the line of "a certain image".
|
|
|
Post by nata488 on Sept 20, 2017 4:30:31 GMT
sorry it took me while to edit the luar but it finally works thanks
|
|
|
Post by mandychan on Sept 23, 2017 8:13:49 GMT
Is it possible to increase the recording area (yellow screen)? I am using RemixOS on my laptop. The game window is bigger than the yellow screen area. EDIT: Problem has been solved! Both the game app and Ankulua app need to be at full screen mode. Thank you for your attention!
|
|
|
Post by nata488 on Sept 26, 2017 15:39:35 GMT
is there a way to input text if image found?
Thank you for Consideration
|
|
|
Post by AnkuLua on Sept 26, 2017 22:44:06 GMT
is there a way to input text if image found? Thank you for Consideration You can modify the generated luar. For example, assume that "5.png" is the text field. You want to click it and input the text then. Modify the action part of line with "5.png" as following touchList[index] = {target = "5.png", region = Region(610, 314, 150, 150), id = "3", action = 'click(matchResult); type("your text here")'}
Note: the region part may be different from yours.
|
|
|
Post by nata488 on Sept 26, 2017 22:58:14 GMT
Thanks A great help as always
|
|
jang
New Member
Posts: 2
|
Post by jang on Oct 6, 2017 14:32:21 GMT
|
|
|
Post by AnkuLua on Oct 6, 2017 23:42:50 GMT
It seems that the script can't write to the storage. What's the path that you downloaded the script to? Suggest downloading or moving to "/sdcard/AnkuLua/snapAndPlay" or "/sdcard/AnkuLua".
|
|
jang
New Member
Posts: 2
|
Post by jang on Oct 11, 2017 7:22:24 GMT
It seems that the script can't write to the storage. What's the path that you downloaded the script to? Suggest downloading or moving to "/sdcard/AnkuLua/snapAndPlay" or "/sdcard/AnkuLua". Thank you, I create directory as "snap&play" and script is running after I change name as "snapAndPlay"
|
|