|
Post by AnkuLua on Mar 26, 2016 12:48:58 GMT
Being able to use our own Monkey script would be amazing for some users. Could implement our own multitouch using DispatchPointer with 13 parameters, the 13th being ID for which finger Not every device's monkey support 13th parameters...
|
|
mgzg
New Member
Posts: 7
|
Post by mgzg on Mar 27, 2016 3:25:06 GMT
I have decided to write my own Monkey and screencap methods in Python and use sl4a and p4a to have Python support. Thank you a ton for all your work on AnkuLua though
|
|
|
Post by dragonfire on Apr 22, 2016 5:22:31 GMT
Is there any way to use Lua function type() (returns data type of argument) instead of Ankulua/Sikuli type()in AnkuLua script?
Unfortunately, you can't do it now. Why do you need it? Maybe we can do it in another way. Also may I suggest function like waitUserTap(seconds) which will wait for user's touch for x seconds and return it's location or false if no touch?
No. The touch will be consumed by the running app. AnkuLua can not sense it. Anything on this, one use case is I need to loop nested table of configurations, persist them in a file. I chose to use this lib and it uses type, any easy work around? lua-users.org/wiki/TablePersistence
|
|
|
Post by AnkuLua on Apr 23, 2016 0:36:04 GMT
Will provide solution in next release.
|
|
|
Post by AnkuLua on Apr 30, 2016 15:45:16 GMT
Is there any way to use Lua function type() (returns data type of argument) instead of Ankulua/Sikuli type()in AnkuLua script?
Unfortunately, you can't do it now. Why do you need it? Maybe we can do it in another way. Also may I suggest function like waitUserTap(seconds) which will wait for user's touch for x seconds and return it's location or false if no touch?
No. The touch will be consumed by the running app. AnkuLua can not sense it. Anything on this, one use case is I need to loop nested table of configurations, persist them in a file. I chose to use this lib and it uses type, any easy work around? lua-users.org/wiki/TablePersistence typeOf( variable) Because the lua type() method is override with the string input method.因為lua 判斷變數類別的type()函數已經被拿來用在輸入字串到螢幕上了 If still needing a method to check variable type, please use typeOf() Or change type() to lua original usage with following codes. The string input method will be changed to keyin() keyin = type type = typeOf
|
|
basel
New Member
Posts: 1
|
Post by basel on May 4, 2016 17:37:14 GMT
It says trial version needs network connection to start service and I have already network connection
|
|
|
Post by AnkuLua on May 4, 2016 23:53:23 GMT
It says trial version needs network connection to start service and I have already network connection Make sure firewall don't block the traffic to network time server.
|
|
Kako
Contributors
Posts: 105
|
Post by Kako on Jun 14, 2016 20:09:44 GMT
I got two more questions/requests: - How can I set the similarity for the numberOCR function? I got some small numbers that don't get recognised, so I would like to lower the similarity a bit.
- Would you mind adding a feature to set the volume of the device? I always forget to lower the volume when I start the script and this is starting to annoy people around me
Thanks in advance!
|
|
|
Post by AnkuLua on Jun 14, 2016 23:45:38 GMT
I got two more questions/requests: - How can I set the similarity for the numberOCR function? I got some small numbers that don't get recognised, so I would like to lower the similarity a bit.
Just set the similarity. Settings:Set("MinSimilarity", 0.5) -- set similarity to 0.5 Will consider it.
|
|
|
Post by superbuff on Aug 21, 2016 4:47:35 GMT
Is there a means to record an input?
Say i want to start a macro, i'll wait for a touch and use that location any time i want to repeat the loop. This way people can select the map they want to farm.
|
|
Kako
Contributors
Posts: 105
|
Post by Kako on Aug 21, 2016 8:25:35 GMT
Is there a means to record an input? Say i want to start a macro, i'll wait for a touch and use that location any time i want to repeat the loop. This way people can select the map they want to farm. This is something I was going to request some time soon as well! I guess it could be implemented to be something like this: touchedDownAt = touchDownInput() -- wait until the user touches the screen and return a Location object touchedUpAt = touchUpInput() -- wait until the user releases its touch and return a Location object as well toast("Touched at " .. touchedDownAt.x .. ", " .. touchedDownAt.y .. " -> " .. touchedUpAt.x .. ", " .. touchedUpAt.y)
This would be a massive improvement to AnkuLua since we can now create macro like stuff, meaning we could create a script for users to create scripts without them having any coding knowledge! superbuff: For the time being you could take a look at the interface methods and ask the user which map to farm by using a dialog
|
|
|
Post by AnkuLua on Aug 21, 2016 8:40:29 GMT
Is there a means to record an input? Say i want to start a macro, i'll wait for a touch and use that location any time i want to repeat the loop. This way people can select the map they want to farm. No. You can refer to the script of brave frontier for choosing stage. ankulua.boards.net/thread/46/brave-frontier-farming-clean-stages
|
|
rebuconotozoi
New Member
Quem paca cara compra paca cara pagará!
Posts: 10
|
Post by rebuconotozoi on Nov 10, 2016 9:37:38 GMT
In a list or array, can I get a random element? Or better, is there a way to get a random number between an interval? Function like: "random(0, 15)".
|
|
|
Post by AnkuLua on Nov 10, 2016 10:26:08 GMT
math.random(0, 15)
|
|
rebuconotozoi
New Member
Quem paca cara compra paca cara pagará!
Posts: 10
|
Post by rebuconotozoi on Nov 20, 2016 22:32:04 GMT
Nice! Will try when I'm home. Now please, can we have a log file? Maybe something like: Settings.logFile( "log.txt" ) This would be much more better than the print, I need to perfect the scripts to not crash while I'm sleeping. Thank you. BTW, is there a way to know all Sikulux methods compatible w/ Ankulua?
|
|