|
Post by AnkuLua on Dec 5, 2018 12:18:27 GMT
Hello, I'm trying to record a simple drag and drop action using Snap and Play but I can't get it to work as I intended to. The script detected the action as drag and drop, and I can see the two points (start and end), but the object on the screen didn't move as it supposed to be dragged and dropped at the end point. Am I missing anything here? How do I properly set up drag and drop using Snap and Play? Thank you in advance. Try different settings for touch in AnkuLua Settings, such as root, daemon, (BETA) fast touch and accessibility (only for Android 8.0 and above). And make sure the action is dragDrop in recorded luar. Or you can setDragDropTiming() ankulua.boards.net/thread/6/objects-methods-introduction-sikuli-compatible#dragDrop
|
|
FiRu
New Member
Posts: 1
|
Post by FiRu on Dec 21, 2018 1:37:59 GMT
|
|
|
Post by AnkuLua on Dec 21, 2018 7:05:00 GMT
Please use the latest AnkuLua version.
|
|
relic
New Member
Posts: 1
|
Post by relic on Dec 27, 2018 15:06:48 GMT
hi guys, I'm a big noob in these things Is anyone willing to make a script for Brutal age: horde invasion? Is it even doable for that game? Let me know, thx in advance. grtz Relic
|
|
thann
New Member
Posts: 8
|
Post by thann on Dec 31, 2018 3:30:46 GMT
How to modified script to kill app if it continue to click at same target more than X time ?
|
|
|
Post by mynameisnotrelevant on Jan 5, 2019 2:47:19 GMT
hi anyone got an idea how to make snap and play repeat on certain number?
|
|
|
Post by AnkuLua on Jan 5, 2019 2:59:53 GMT
hi anyone got an idea how to make snap and play repeat on certain number? There is an option "Stop when finding chosen snap for fixed times." in playback.
|
|
|
Post by mynameisnotrelevant on Jan 5, 2019 3:15:25 GMT
hi anyone got an idea how to make snap and play repeat on certain number? There is an option "Stop when finding chosen snap for fixed times." in playback. is that like if I want it to repeat for 5 times it will stop the Snap and Play ?
|
|
|
Post by AnkuLua on Jan 5, 2019 3:54:53 GMT
There is an option "Stop when finding chosen snap for fixed times." in playback. is that like if I want it to repeat for 5 times it will stop the Snap and Play ? You can choose stop if finding some specific picture 5 times. Just try it and you will know it.
|
|
|
Post by lakatl on Jan 25, 2019 15:19:24 GMT
Hello! I really like this app and I'd like to get some help. When I use snap and play, I like how it scans the screen and hits whenever it finds the button; however, is it possible to set a timer for just one click - so it doesn't click as soon as it's scanned but wait x seconds? If so, please provide a step by step easy tutorial as I'm quite noob for the script. Thank you in advance!
|
|
|
Post by AnkuLua on Jan 25, 2019 15:22:46 GMT
Hello! I really like this app and I'd like to get some help. When I use snap and play, I like how it scans the screen and hits whenever it finds the button; however, is it possible to set a timer for just one click - so it doesn't click as soon as it's scanned but wait x seconds? If so, please provide a step by step easy tutorial as I'm quite noob for the script. Thank you in advance! You have to modify the generated luar. For example, to wait 3 seconds then click the 2.png, modify the action string. ------ 2 ----- touchList[index] = {target = "2.png", region = Region(774, 493, 150, 150), id = "2", action = 'wait(3); click(matchResult)'} index = index + 1
|
|
|
Post by lakatl on Jan 25, 2019 15:42:07 GMT
Hello! I really like this app and I'd like to get some help. When I use snap and play, I like how it scans the screen and hits whenever it finds the button; however, is it possible to set a timer for just one click - so it doesn't click as soon as it's scanned but wait x seconds? If so, please provide a step by step easy tutorial as I'm quite noob for the script. Thank you in advance! You have to modify the generated luar. For example, to wait 3 seconds then click the 2.png, modify the action string. ------ 2 ----- touchList[index] = {target = "2.png", region = Region(774, 493, 150, 150), id = "2", action = 'wait(3); click(matchResult)'} index = index + 1
How do I modify it? I tried using a notepad but it didn't work. Can you suggest solution as to how I can modify it?
|
|
|
Post by AnkuLua on Jan 25, 2019 23:45:48 GMT
You have to modify the generated luar. For example, to wait 3 seconds then click the 2.png, modify the action string. ------ 2 ----- touchList[index] = {target = "2.png", region = Region(774, 493, 150, 150), id = "2", action = 'wait(3); click(matchResult)'} index = index + 1
How do I modify it? I tried using a notepad but it didn't work. Can you suggest solution as to how I can modify it? Use any Android editor app.
|
|
|
Post by northrunner on Mar 5, 2019 15:34:18 GMT
Hello, is there a patch note about what the function do, like how to use correctly when A found click B location. I am currently able to use this for my game even if theres a few flaw. I would like to see if these function will allow me to run the script while I am away.
What I would like is depending on the stage (the ground is a different color) send a fighter. If the stage is different because the ground not the same color the fighter wont be send. Also if enter certain stage, i want to leave and search again. Is this possible you think? Sorry for my english XD
|
|
|
Post by AnkuLua on Mar 5, 2019 23:00:55 GMT
Hello, is there a patch note about what the function do, like how to use correctly when A found click B location. I am currently able to use this for my game even if theres a few flaw. I would like to see if these function will allow me to run the script while I am away. What I would like is depending on the stage (the ground is a different color) send a fighter. If the stage is different because the ground not the same color the fighter wont be send. Also if enter certain stage, i want to leave and search again. Is this possible you think? Sorry for my english XD You may need to write some function scripts. touchList[index] = {target = Pattern("target.png"), region = Region(1033, 440, 352, 352), id = "target", action = 'target()'}
function target() -- do things that you want end
|
|